@zinn-digital/sdk 0.1.1740 → 0.1.1742

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.
@@ -3579,6 +3579,26 @@ export interface paths {
3579
3579
  patch?: never;
3580
3580
  trace?: never;
3581
3581
  };
3582
+ "/v1/admin/code-care": {
3583
+ parameters: {
3584
+ query?: never;
3585
+ header?: never;
3586
+ path?: never;
3587
+ cookie?: never;
3588
+ };
3589
+ /**
3590
+ * Every Code Care subscriber and this month's hours (staff).
3591
+ * @description One row per organization holding Code Care: tier, since, minimum term end, the allowance of the current month and how many fix invoices are unpaid. Requires staff + `customer.view`.
3592
+ */
3593
+ get: operations["listAdminCodeCare"];
3594
+ put?: never;
3595
+ post?: never;
3596
+ delete?: never;
3597
+ options?: never;
3598
+ head?: never;
3599
+ patch?: never;
3600
+ trace?: never;
3601
+ };
3582
3602
  "/v1/admin/compute/add-ons": {
3583
3603
  parameters: {
3584
3604
  query?: never;
@@ -4803,6 +4823,126 @@ export interface paths {
4803
4823
  patch?: never;
4804
4824
  trace?: never;
4805
4825
  };
4826
+ "/v1/admin/dev-requests": {
4827
+ parameters: {
4828
+ query?: never;
4829
+ header?: never;
4830
+ path?: never;
4831
+ cookie?: never;
4832
+ };
4833
+ /**
4834
+ * The fix-request queue, with AI drafts (staff).
4835
+ * @description Every fix request, newest first, optionally one `status`. Staff rows add the AI draft (summary, likely cause, steps, tasks in 15-minute blocks with reasons, calibration on real logged time), `flagged_large` (over 2 hours) and `auto_sent`. Requires staff + `tickets.view`.
4836
+ */
4837
+ get: operations["listAdminDevRequests"];
4838
+ put?: never;
4839
+ post?: never;
4840
+ delete?: never;
4841
+ options?: never;
4842
+ head?: never;
4843
+ patch?: never;
4844
+ trace?: never;
4845
+ };
4846
+ "/v1/admin/dev-requests/{request_id}/approve-draft": {
4847
+ parameters: {
4848
+ query?: never;
4849
+ header?: never;
4850
+ path?: never;
4851
+ cookie?: never;
4852
+ };
4853
+ get?: never;
4854
+ put?: never;
4855
+ /**
4856
+ * Send the AI draft to the customer as it stands (staff, one click).
4857
+ * @description Refusal: `no_draft`. Requires staff + `tickets.reply`.
4858
+ */
4859
+ post: operations["approveDevRequestDraft"];
4860
+ delete?: never;
4861
+ options?: never;
4862
+ head?: never;
4863
+ patch?: never;
4864
+ trace?: never;
4865
+ };
4866
+ "/v1/admin/dev-requests/{request_id}/backup": {
4867
+ parameters: {
4868
+ query?: never;
4869
+ header?: never;
4870
+ path?: never;
4871
+ cookie?: never;
4872
+ };
4873
+ get?: never;
4874
+ put?: never;
4875
+ /**
4876
+ * Record the backup taken before work (staff).
4877
+ * @description Requires staff + `tickets.reply`.
4878
+ */
4879
+ post: operations["recordDevRequestBackup"];
4880
+ delete?: never;
4881
+ options?: never;
4882
+ head?: never;
4883
+ patch?: never;
4884
+ trace?: never;
4885
+ };
4886
+ "/v1/admin/dev-requests/{request_id}/complete": {
4887
+ parameters: {
4888
+ query?: never;
4889
+ header?: never;
4890
+ path?: never;
4891
+ cookie?: never;
4892
+ };
4893
+ get?: never;
4894
+ put?: never;
4895
+ /**
4896
+ * Finish a fix request (staff).
4897
+ * @description Draws the covered time and bills the extra time once (a one-off invoice, Zinn® credit first, then the card on file), never above the approved amount; the customer is asked to check it. Requires staff + `tickets.reply`.
4898
+ */
4899
+ post: operations["completeDevRequest"];
4900
+ delete?: never;
4901
+ options?: never;
4902
+ head?: never;
4903
+ patch?: never;
4904
+ trace?: never;
4905
+ };
4906
+ "/v1/admin/dev-requests/{request_id}/estimate": {
4907
+ parameters: {
4908
+ query?: never;
4909
+ header?: never;
4910
+ path?: never;
4911
+ cookie?: never;
4912
+ };
4913
+ get?: never;
4914
+ put?: never;
4915
+ /**
4916
+ * Quote a fix request, or edit the AI draft (staff).
4917
+ * @description Minutes in whole 15-minute blocks (30-minute minimum); the covered/extra split and the money are computed. A changed estimate always needs the customer to approve again. Refusals: `closed`, `not_blocks`, `below_logged`. Requires staff + `tickets.reply`.
4918
+ */
4919
+ post: operations["estimateDevRequest"];
4920
+ delete?: never;
4921
+ options?: never;
4922
+ head?: never;
4923
+ patch?: never;
4924
+ trace?: never;
4925
+ };
4926
+ "/v1/admin/dev-requests/{request_id}/log": {
4927
+ parameters: {
4928
+ query?: never;
4929
+ header?: never;
4930
+ path?: never;
4931
+ cookie?: never;
4932
+ };
4933
+ get?: never;
4934
+ put?: never;
4935
+ /**
4936
+ * Log real time and a note on a fix request (staff).
4937
+ * @description Whole 15-minute blocks; refused past the approved estimate (`over_estimate`): send a revised estimate instead. Requires staff + `tickets.reply`.
4938
+ */
4939
+ post: operations["logDevRequestTime"];
4940
+ delete?: never;
4941
+ options?: never;
4942
+ head?: never;
4943
+ patch?: never;
4944
+ trace?: never;
4945
+ };
4806
4946
  "/v1/admin/digests": {
4807
4947
  parameters: {
4808
4948
  query?: never;
@@ -29426,6 +29566,50 @@ export interface paths {
29426
29566
  patch?: never;
29427
29567
  trace?: never;
29428
29568
  };
29569
+ "/v1/code-care": {
29570
+ parameters: {
29571
+ query?: never;
29572
+ header?: never;
29573
+ path?: never;
29574
+ cookie?: never;
29575
+ };
29576
+ /**
29577
+ * The account's Code Care plan, this month's hours, and the fix rate.
29578
+ * @description Code Care (`docs/1327`): a monthly add-on of included developer time (Basic 1 h, Standard 2.5 h, Pro 6 h) plus a discount on extra time. `tier` is null when the account has none. `plans` are priced in the caller's currency (EUR exact, others converted). `allowance` is the month the account is in now: included, used, reserved by approved jobs and left, in minutes; `frozen` is true while a fix invoice is unpaid. `rate` is the pay-as-you-go rate (15-minute blocks, 30-minute minimum per job). The organization is `org_id` or `X-Zinn-Org`. Requires `billing.view`.
29579
+ */
29580
+ get: operations["getCodeCare"];
29581
+ put?: never;
29582
+ /**
29583
+ * Buy Code Care, or move to another tier.
29584
+ * @description Buys the tier through the ordinary add-on purchase (charge, tax as a human professional service, invoice). A higher tier takes effect at once and charges the pro-rata difference; a lower tier is scheduled for the renewal and charges nothing now (`scheduled: true`). There is a 3-month minimum term. `PAYMENT_METHOD_REQUIRED` carries `error.payment`, the order to settle on-session, exactly as the add-on checkout does. Requires `billing.payment.manage`.
29585
+ */
29586
+ post: operations["chooseCodeCare"];
29587
+ delete?: never;
29588
+ options?: never;
29589
+ head?: never;
29590
+ patch?: never;
29591
+ trace?: never;
29592
+ };
29593
+ "/v1/code-care/cancel": {
29594
+ parameters: {
29595
+ query?: never;
29596
+ header?: never;
29597
+ path?: never;
29598
+ cookie?: never;
29599
+ };
29600
+ get?: never;
29601
+ put?: never;
29602
+ /**
29603
+ * Stop Code Care renewing.
29604
+ * @description Code Care keeps running to the later of the paid-through date and the end of the 3-month minimum, then stops; nothing is refunded. Refusals (`details[].code`): `code_care_none`, `already_cancelled`. Requires `billing.payment.manage`.
29605
+ */
29606
+ post: operations["cancelCodeCare"];
29607
+ delete?: never;
29608
+ options?: never;
29609
+ head?: never;
29610
+ patch?: never;
29611
+ trace?: never;
29612
+ };
29429
29613
  "/v1/compute/add-ons": {
29430
29614
  parameters: {
29431
29615
  query?: never;
@@ -32338,6 +32522,150 @@ export interface paths {
32338
32522
  patch?: never;
32339
32523
  trace?: never;
32340
32524
  };
32525
+ "/v1/dev-requests": {
32526
+ parameters: {
32527
+ query?: never;
32528
+ header?: never;
32529
+ path?: never;
32530
+ cookie?: never;
32531
+ };
32532
+ /**
32533
+ * The account's fix requests, newest first.
32534
+ * @description Every fix request of the organization with its estimate, the covered/extra split and money, the logged time and the work notes. Requires `tickets.view`.
32535
+ */
32536
+ get: operations["listDevRequests"];
32537
+ put?: never;
32538
+ /**
32539
+ * Ask for a fix (a bug, an error, a plugin, theme or code change).
32540
+ * @description Opens a fix request and its support ticket. Nothing is charged: the request is quoted first (an AI draft, sent automatically only when it is at most 30 minutes, fully covered by Code Care and bills nothing; otherwise staff approve or edit it) and work starts only after the customer approves. `access_consent` must be true (we may log in and change files). Refused while the account is not in good standing or a fix invoice is unpaid (`not_in_good_standing`, `dev_invoice_unpaid`). Requires `tickets.reply`.
32541
+ */
32542
+ post: operations["createDevRequest"];
32543
+ delete?: never;
32544
+ options?: never;
32545
+ head?: never;
32546
+ patch?: never;
32547
+ trace?: never;
32548
+ };
32549
+ "/v1/dev-requests/{request_id}": {
32550
+ parameters: {
32551
+ query?: never;
32552
+ header?: never;
32553
+ path?: never;
32554
+ cookie?: never;
32555
+ };
32556
+ /**
32557
+ * One fix request.
32558
+ * @description The request, its estimate and split, and its work log. Requires `tickets.view`.
32559
+ */
32560
+ get: operations["getDevRequest"];
32561
+ put?: never;
32562
+ post?: never;
32563
+ delete?: never;
32564
+ options?: never;
32565
+ head?: never;
32566
+ patch?: never;
32567
+ trace?: never;
32568
+ };
32569
+ "/v1/dev-requests/{request_id}/accept": {
32570
+ parameters: {
32571
+ query?: never;
32572
+ header?: never;
32573
+ path?: never;
32574
+ cookie?: never;
32575
+ };
32576
+ get?: never;
32577
+ put?: never;
32578
+ /**
32579
+ * Accept finished work.
32580
+ * @description Closes a request that is ready for the check. Requires `tickets.reply`.
32581
+ */
32582
+ post: operations["acceptDevRequest"];
32583
+ delete?: never;
32584
+ options?: never;
32585
+ head?: never;
32586
+ patch?: never;
32587
+ trace?: never;
32588
+ };
32589
+ "/v1/dev-requests/{request_id}/approve": {
32590
+ parameters: {
32591
+ query?: never;
32592
+ header?: never;
32593
+ path?: never;
32594
+ cookie?: never;
32595
+ };
32596
+ get?: never;
32597
+ put?: never;
32598
+ /**
32599
+ * Approve the estimate; work may start.
32600
+ * @description Reserves the covered time from the allowance of the month it is approved in and commits to the extra money shown (billed on completion for the real time, never above the approved estimate). `terms_version` must be the current Development services & Code Care terms. Refusals: `not_estimated`, `terms_not_accepted`, `split_changed` (the allowance moved; re-read and approve again), `dev_invoice_unpaid`, `not_in_good_standing`. Requires `billing.payment.manage`.
32601
+ */
32602
+ post: operations["approveDevRequestEstimate"];
32603
+ delete?: never;
32604
+ options?: never;
32605
+ head?: never;
32606
+ patch?: never;
32607
+ trace?: never;
32608
+ };
32609
+ "/v1/dev-requests/{request_id}/cancel": {
32610
+ parameters: {
32611
+ query?: never;
32612
+ header?: never;
32613
+ path?: never;
32614
+ cookie?: never;
32615
+ };
32616
+ get?: never;
32617
+ put?: never;
32618
+ /**
32619
+ * Cancel a fix request before any work is logged.
32620
+ * @description Requires `tickets.reply`.
32621
+ */
32622
+ post: operations["cancelDevRequest"];
32623
+ delete?: never;
32624
+ options?: never;
32625
+ head?: never;
32626
+ patch?: never;
32627
+ trace?: never;
32628
+ };
32629
+ "/v1/dev-requests/{request_id}/decline": {
32630
+ parameters: {
32631
+ query?: never;
32632
+ header?: never;
32633
+ path?: never;
32634
+ cookie?: never;
32635
+ };
32636
+ get?: never;
32637
+ put?: never;
32638
+ /**
32639
+ * Decline the estimate.
32640
+ * @description Nothing is charged. Requires `tickets.reply`.
32641
+ */
32642
+ post: operations["declineDevRequestEstimate"];
32643
+ delete?: never;
32644
+ options?: never;
32645
+ head?: never;
32646
+ patch?: never;
32647
+ trace?: never;
32648
+ };
32649
+ "/v1/dev-requests/{request_id}/reopen": {
32650
+ parameters: {
32651
+ query?: never;
32652
+ header?: never;
32653
+ path?: never;
32654
+ cookie?: never;
32655
+ };
32656
+ get?: never;
32657
+ put?: never;
32658
+ /**
32659
+ * Reopen finished work within 7 days.
32660
+ * @description Sends it back to the developer with a note. Requires `tickets.reply`.
32661
+ */
32662
+ post: operations["reopenDevRequest"];
32663
+ delete?: never;
32664
+ options?: never;
32665
+ head?: never;
32666
+ patch?: never;
32667
+ trace?: never;
32668
+ };
32341
32669
  "/v1/domain-alerts": {
32342
32670
  parameters: {
32343
32671
  query?: never;
@@ -61948,6 +62276,19 @@ export interface components {
61948
62276
  /** @description ⛔⛔ Rows the query actually returned. Read this before the counts below. */
61949
62277
  scanned: number;
61950
62278
  };
62279
+ AdminCodeCareList: {
62280
+ data: {
62281
+ allowance?: components["schemas"]["CodeCareAllowance"] | null;
62282
+ /** Format: date */
62283
+ min_term_ends_on?: string;
62284
+ /** Format: uuid */
62285
+ org_id?: string;
62286
+ /** Format: date */
62287
+ since?: string;
62288
+ tier?: string;
62289
+ unpaid_dev_invoices?: number;
62290
+ }[];
62291
+ };
61951
62292
  /** @description One organisation's verification file, as the staff queue renders it. */
61952
62293
  AdminComputeEligibility: {
61953
62294
  abuse_contact_email: string;
@@ -80526,6 +80867,76 @@ export interface components {
80526
80867
  /** @enum {string} */
80527
80868
  suitability: "ready" | "needs_setup" | "unknown" | "unsuitable" | "blocked";
80528
80869
  };
80870
+ CodeCareAllowance: {
80871
+ /** @description True while a fix invoice is unpaid or the account is not in good standing. */
80872
+ frozen: boolean;
80873
+ included_minutes: number;
80874
+ left_minutes: number;
80875
+ /** Format: date */
80876
+ period_start: string;
80877
+ reserved_minutes: number;
80878
+ /** Format: date */
80879
+ resets_on: string;
80880
+ used_minutes: number;
80881
+ };
80882
+ CodeCareCancelResult: {
80883
+ /** Format: date */
80884
+ ends_on: string;
80885
+ /** Format: date */
80886
+ min_term_ends_on: string;
80887
+ };
80888
+ CodeCareChoose: {
80889
+ currency?: string;
80890
+ gateway?: string;
80891
+ /** Format: uuid */
80892
+ org_id?: string;
80893
+ /** @enum {string} */
80894
+ tier: "basic" | "standard" | "pro";
80895
+ };
80896
+ CodeCareChooseResult: {
80897
+ amount_minor?: number;
80898
+ currency?: string;
80899
+ /** Format: uuid */
80900
+ purchase_id?: string;
80901
+ /** @description True when a downgrade was set for the renewal. */
80902
+ scheduled: boolean;
80903
+ status?: string;
80904
+ switch?: {
80905
+ [key: string]: unknown;
80906
+ };
80907
+ tier: string;
80908
+ };
80909
+ CodeCarePlan: {
80910
+ code: string;
80911
+ currency: string;
80912
+ /** @description Discount on extra time */
80913
+ discount_bps: number;
80914
+ included_minutes: number;
80915
+ name: string;
80916
+ /** @description Monthly price in minor units */
80917
+ price_minor: number;
80918
+ /** @enum {string} */
80919
+ tier: "basic" | "standard" | "pro";
80920
+ };
80921
+ CodeCareState: {
80922
+ allowance: components["schemas"]["CodeCareAllowance"] | null;
80923
+ /** Format: date */
80924
+ ends_on?: string | null;
80925
+ may_request: boolean;
80926
+ /** Format: date */
80927
+ min_term_ends_on?: string | null;
80928
+ plans: components["schemas"]["CodeCarePlan"][];
80929
+ rate: {
80930
+ block_minutes: number;
80931
+ currency: string;
80932
+ hourly_minor: number;
80933
+ minimum_minutes: number;
80934
+ };
80935
+ /** Format: date */
80936
+ renews_on?: string | null;
80937
+ /** @enum {string|null} */
80938
+ tier: "basic" | "standard" | "pro" | null;
80939
+ };
80529
80940
  /** @description One dated commission row (docs/78 §10.1). A change is effective-dated, never retroactive: end the current row and add one starting the next day. */
80530
80941
  CommissionRate: {
80531
80942
  /** Format: date-time */
@@ -83575,6 +83986,104 @@ export interface components {
83575
83986
  * @enum {string}
83576
83987
  */
83577
83988
  DeployVerdict: "pending" | "healthy" | "broken" | "unverified";
83989
+ DevRequest: {
83990
+ access_consent?: boolean;
83991
+ /** @description Staff only. */
83992
+ ai_draft?: {
83993
+ [key: string]: unknown;
83994
+ } | null;
83995
+ /** Format: date-time */
83996
+ approved_at?: string | null;
83997
+ /** @description Staff only. */
83998
+ auto_sent?: boolean;
83999
+ /** Format: date-time */
84000
+ backup_at?: string | null;
84001
+ billed_covered_minutes?: number;
84002
+ billed_extra_minutes?: number;
84003
+ /** Format: date-time */
84004
+ completed_at?: string | null;
84005
+ /** Format: date-time */
84006
+ created_at: string;
84007
+ currency?: string | null;
84008
+ description?: string;
84009
+ estimate_note?: string;
84010
+ /** @enum {string|null} */
84011
+ estimate_source?: "ai" | "ai_approved" | "staff" | null;
84012
+ /** @description Staff only. */
84013
+ estimated_by?: string;
84014
+ extra_amount_minor?: number;
84015
+ /** @description Staff only. Over 2 hours. */
84016
+ flagged_large?: boolean;
84017
+ /** Format: uuid */
84018
+ id: string;
84019
+ kind: components["schemas"]["DevRequestKind"];
84020
+ logged_minutes?: number;
84021
+ /** Format: uuid */
84022
+ org_id: string;
84023
+ quote?: components["schemas"]["DevRequestQuote"] | null;
84024
+ /** Format: date-time */
84025
+ ready_at?: string | null;
84026
+ reference: string;
84027
+ /** Format: uuid */
84028
+ site_id?: string | null;
84029
+ /** @description The site is suspended because this request's invoice is unpaid. */
84030
+ site_suspended?: boolean;
84031
+ status: components["schemas"]["DevRequestStatus"];
84032
+ /** Format: uuid */
84033
+ ticket_id?: string | null;
84034
+ title: string;
84035
+ work_logs: {
84036
+ /** Format: date-time */
84037
+ logged_at?: string;
84038
+ minutes?: number;
84039
+ note?: string;
84040
+ }[];
84041
+ };
84042
+ DevRequestApprove: {
84043
+ terms_version: string;
84044
+ };
84045
+ DevRequestBackup: {
84046
+ ref: string;
84047
+ };
84048
+ DevRequestCreate: {
84049
+ access_consent: boolean;
84050
+ currency?: string;
84051
+ description: string;
84052
+ kind: components["schemas"]["DevRequestKind"];
84053
+ /** Format: uuid */
84054
+ org_id?: string;
84055
+ /** Format: uuid */
84056
+ site_id?: string | null;
84057
+ title: string;
84058
+ };
84059
+ /** @enum {string} */
84060
+ DevRequestKind: "bug_fix" | "error" | "plugin" | "theme_code" | "version_breakage" | "small_tweak";
84061
+ DevRequestList: {
84062
+ data: components["schemas"]["DevRequest"][];
84063
+ };
84064
+ DevRequestMinutes: {
84065
+ minutes: number;
84066
+ note: string;
84067
+ };
84068
+ DevRequestNote: {
84069
+ note: string;
84070
+ };
84071
+ DevRequestQuote: {
84072
+ /** @description Without Code Care, what each tier would have saved on this job. */
84073
+ code_care_saving?: {
84074
+ saving_minor?: number;
84075
+ tier?: string;
84076
+ }[] | null;
84077
+ covered_minutes?: number;
84078
+ currency?: string;
84079
+ discount_bps?: number;
84080
+ estimate_minutes?: number;
84081
+ extra_amount_minor?: number;
84082
+ extra_minutes?: number;
84083
+ hourly_rate_minor?: number;
84084
+ };
84085
+ /** @enum {string} */
84086
+ DevRequestStatus: "submitted" | "estimated" | "approved" | "in_progress" | "ready_for_check" | "completed" | "declined" | "cancelled";
83578
84087
  /**
83579
84088
  * @description One bill Zinn® raised against a named recipient who need not be a customer. The recipient is DATA on this row, not a tenant — the document belongs to the issuer, which is us.
83580
84089
  *
@@ -84085,7 +84594,7 @@ export interface components {
84085
84594
  paused_reason: "by_you" | "over_plan" | null;
84086
84595
  };
84087
84596
  /**
84088
- * @description The one state a customer is shown for a domain (engine `domains.attach_state`, docs/823 §13), in ladder order: `not_attached` (no site serves the name, none has it added, and no running domain change is attaching it), `getting_certificate` (attached AND resolving to us: a certificate is the only step left) or `live`, `nameservers_elsewhere` (we gave it our nameservers and the real public delegation is another provider's), `no_address_record` (the resolver answered, NXDOMAIN or empty, and no A/AAAA record lands on us), `unknown` (a leg could not be read, including a failed DNS lookup; never a verdict). A name a running domain change is attaching has the same state here as in `getSiteRenameStatus.domain_state`.
84597
+ * @description The one state a customer is shown for a domain (engine `domains.attach_state`, docs/823 §13), in ladder order: `not_attached` (no site serves the name, none has it added, and no running domain change is attaching it), `getting_certificate` (attached AND this site's own probe token came back through the name, measured per site and name; a DNS answer alone, such as a Cloudflare address, never counts: a certificate is the only step left) or `live` (that probe plus a verifying TLS handshake), `nameservers_elsewhere` (we gave it our nameservers and the real public delegation is another provider's), `no_address_record` (the resolver answered, NXDOMAIN or empty, and no A/AAAA record lands on us), `unknown` (a leg could not be read, including a failed DNS lookup; never a verdict). A name a running domain change is attaching has the same state here as in `getSiteRenameStatus.domain_state`.
84089
84598
  * @enum {string}
84090
84599
  */
84091
84600
  DomainAttachState: "not_attached" | "nameservers_elsewhere" | "no_address_record" | "getting_certificate" | "live" | "unknown";
@@ -119272,6 +119781,7 @@ export interface components {
119272
119781
  Cursor: string;
119273
119782
  /** @description Deployment ID (UUIDv7). */
119274
119783
  DeploymentId: components["schemas"]["Uuid"];
119784
+ DevRequestId: string;
119275
119785
  /** @description The domain's id. */
119276
119786
  DomainId: components["schemas"]["Uuid"];
119277
119787
  /** @description The provider's own id for the destination address. */
@@ -125061,6 +125571,28 @@ export interface operations {
125061
125571
  429: components["responses"]["TooManyRequests"];
125062
125572
  };
125063
125573
  };
125574
+ listAdminCodeCare: {
125575
+ parameters: {
125576
+ query?: never;
125577
+ header?: never;
125578
+ path?: never;
125579
+ cookie?: never;
125580
+ };
125581
+ requestBody?: never;
125582
+ responses: {
125583
+ /** @description The subscribers. */
125584
+ 200: {
125585
+ headers: {
125586
+ [name: string]: unknown;
125587
+ };
125588
+ content: {
125589
+ "application/json": components["schemas"]["AdminCodeCareList"];
125590
+ };
125591
+ };
125592
+ 401: components["responses"]["Unauthorized"];
125593
+ 403: components["responses"]["Forbidden"];
125594
+ };
125595
+ };
125064
125596
  listAdminComputeAddOns: {
125065
125597
  parameters: {
125066
125598
  query?: never;
@@ -126862,6 +127394,172 @@ export interface operations {
126862
127394
  429: components["responses"]["TooManyRequests"];
126863
127395
  };
126864
127396
  };
127397
+ listAdminDevRequests: {
127398
+ parameters: {
127399
+ query?: {
127400
+ status?: components["schemas"]["DevRequestStatus"];
127401
+ };
127402
+ header?: never;
127403
+ path?: never;
127404
+ cookie?: never;
127405
+ };
127406
+ requestBody?: never;
127407
+ responses: {
127408
+ /** @description The queue. */
127409
+ 200: {
127410
+ headers: {
127411
+ [name: string]: unknown;
127412
+ };
127413
+ content: {
127414
+ "application/json": components["schemas"]["DevRequestList"];
127415
+ };
127416
+ };
127417
+ 401: components["responses"]["Unauthorized"];
127418
+ 403: components["responses"]["Forbidden"];
127419
+ };
127420
+ };
127421
+ approveDevRequestDraft: {
127422
+ parameters: {
127423
+ query?: never;
127424
+ header?: never;
127425
+ path: {
127426
+ request_id: components["parameters"]["DevRequestId"];
127427
+ };
127428
+ cookie?: never;
127429
+ };
127430
+ requestBody?: never;
127431
+ responses: {
127432
+ /** @description The fix request after the change. */
127433
+ 200: {
127434
+ headers: {
127435
+ [name: string]: unknown;
127436
+ };
127437
+ content: {
127438
+ "application/json": components["schemas"]["DevRequest"];
127439
+ };
127440
+ };
127441
+ 401: components["responses"]["Unauthorized"];
127442
+ 403: components["responses"]["Forbidden"];
127443
+ 404: components["responses"]["NotFound"];
127444
+ 422: components["responses"]["UnprocessableEntity"];
127445
+ };
127446
+ };
127447
+ recordDevRequestBackup: {
127448
+ parameters: {
127449
+ query?: never;
127450
+ header?: never;
127451
+ path: {
127452
+ request_id: components["parameters"]["DevRequestId"];
127453
+ };
127454
+ cookie?: never;
127455
+ };
127456
+ requestBody: {
127457
+ content: {
127458
+ "application/json": components["schemas"]["DevRequestBackup"];
127459
+ };
127460
+ };
127461
+ responses: {
127462
+ /** @description The fix request after the change. */
127463
+ 200: {
127464
+ headers: {
127465
+ [name: string]: unknown;
127466
+ };
127467
+ content: {
127468
+ "application/json": components["schemas"]["DevRequest"];
127469
+ };
127470
+ };
127471
+ 401: components["responses"]["Unauthorized"];
127472
+ 403: components["responses"]["Forbidden"];
127473
+ 404: components["responses"]["NotFound"];
127474
+ 422: components["responses"]["UnprocessableEntity"];
127475
+ };
127476
+ };
127477
+ completeDevRequest: {
127478
+ parameters: {
127479
+ query?: never;
127480
+ header?: never;
127481
+ path: {
127482
+ request_id: components["parameters"]["DevRequestId"];
127483
+ };
127484
+ cookie?: never;
127485
+ };
127486
+ requestBody?: never;
127487
+ responses: {
127488
+ /** @description The fix request after the change. */
127489
+ 200: {
127490
+ headers: {
127491
+ [name: string]: unknown;
127492
+ };
127493
+ content: {
127494
+ "application/json": components["schemas"]["DevRequest"];
127495
+ };
127496
+ };
127497
+ 401: components["responses"]["Unauthorized"];
127498
+ 403: components["responses"]["Forbidden"];
127499
+ 404: components["responses"]["NotFound"];
127500
+ 422: components["responses"]["UnprocessableEntity"];
127501
+ };
127502
+ };
127503
+ estimateDevRequest: {
127504
+ parameters: {
127505
+ query?: never;
127506
+ header?: never;
127507
+ path: {
127508
+ request_id: components["parameters"]["DevRequestId"];
127509
+ };
127510
+ cookie?: never;
127511
+ };
127512
+ requestBody: {
127513
+ content: {
127514
+ "application/json": components["schemas"]["DevRequestMinutes"];
127515
+ };
127516
+ };
127517
+ responses: {
127518
+ /** @description The fix request after the change. */
127519
+ 200: {
127520
+ headers: {
127521
+ [name: string]: unknown;
127522
+ };
127523
+ content: {
127524
+ "application/json": components["schemas"]["DevRequest"];
127525
+ };
127526
+ };
127527
+ 401: components["responses"]["Unauthorized"];
127528
+ 403: components["responses"]["Forbidden"];
127529
+ 404: components["responses"]["NotFound"];
127530
+ 422: components["responses"]["UnprocessableEntity"];
127531
+ };
127532
+ };
127533
+ logDevRequestTime: {
127534
+ parameters: {
127535
+ query?: never;
127536
+ header?: never;
127537
+ path: {
127538
+ request_id: components["parameters"]["DevRequestId"];
127539
+ };
127540
+ cookie?: never;
127541
+ };
127542
+ requestBody: {
127543
+ content: {
127544
+ "application/json": components["schemas"]["DevRequestMinutes"];
127545
+ };
127546
+ };
127547
+ responses: {
127548
+ /** @description The fix request after the change. */
127549
+ 200: {
127550
+ headers: {
127551
+ [name: string]: unknown;
127552
+ };
127553
+ content: {
127554
+ "application/json": components["schemas"]["DevRequest"];
127555
+ };
127556
+ };
127557
+ 401: components["responses"]["Unauthorized"];
127558
+ 403: components["responses"]["Forbidden"];
127559
+ 404: components["responses"]["NotFound"];
127560
+ 422: components["responses"]["UnprocessableEntity"];
127561
+ };
127562
+ };
126865
127563
  listDigests: {
126866
127564
  parameters: {
126867
127565
  query?: {
@@ -168761,6 +169459,97 @@ export interface operations {
168761
169459
  };
168762
169460
  };
168763
169461
  };
169462
+ getCodeCare: {
169463
+ parameters: {
169464
+ query?: {
169465
+ org_id?: string;
169466
+ };
169467
+ header?: never;
169468
+ path?: never;
169469
+ cookie?: never;
169470
+ };
169471
+ requestBody?: never;
169472
+ responses: {
169473
+ /** @description The Code Care state. */
169474
+ 200: {
169475
+ headers: {
169476
+ [name: string]: unknown;
169477
+ };
169478
+ content: {
169479
+ "application/json": components["schemas"]["CodeCareState"];
169480
+ };
169481
+ };
169482
+ 401: components["responses"]["Unauthorized"];
169483
+ 403: components["responses"]["Forbidden"];
169484
+ 422: components["responses"]["UnprocessableEntity"];
169485
+ };
169486
+ };
169487
+ chooseCodeCare: {
169488
+ parameters: {
169489
+ query?: never;
169490
+ header?: never;
169491
+ path?: never;
169492
+ cookie?: never;
169493
+ };
169494
+ requestBody: {
169495
+ content: {
169496
+ "application/json": components["schemas"]["CodeCareChoose"];
169497
+ };
169498
+ };
169499
+ responses: {
169500
+ /** @description A downgrade was scheduled for the renewal. */
169501
+ 200: {
169502
+ headers: {
169503
+ [name: string]: unknown;
169504
+ };
169505
+ content: {
169506
+ "application/json": components["schemas"]["CodeCareChooseResult"];
169507
+ };
169508
+ };
169509
+ /** @description The purchase was made. */
169510
+ 201: {
169511
+ headers: {
169512
+ [name: string]: unknown;
169513
+ };
169514
+ content: {
169515
+ "application/json": components["schemas"]["CodeCareChooseResult"];
169516
+ };
169517
+ };
169518
+ 401: components["responses"]["Unauthorized"];
169519
+ 403: components["responses"]["Forbidden"];
169520
+ 422: components["responses"]["UnprocessableEntity"];
169521
+ };
169522
+ };
169523
+ cancelCodeCare: {
169524
+ parameters: {
169525
+ query?: never;
169526
+ header?: never;
169527
+ path?: never;
169528
+ cookie?: never;
169529
+ };
169530
+ requestBody?: {
169531
+ content: {
169532
+ "application/json": {
169533
+ /** Format: uuid */
169534
+ org_id?: string;
169535
+ };
169536
+ };
169537
+ };
169538
+ responses: {
169539
+ /** @description When it ends. */
169540
+ 200: {
169541
+ headers: {
169542
+ [name: string]: unknown;
169543
+ };
169544
+ content: {
169545
+ "application/json": components["schemas"]["CodeCareCancelResult"];
169546
+ };
169547
+ };
169548
+ 401: components["responses"]["Unauthorized"];
169549
+ 403: components["responses"]["Forbidden"];
169550
+ 422: components["responses"]["UnprocessableEntity"];
169551
+ };
169552
+ };
168764
169553
  listComputeAddOns: {
168765
169554
  parameters: {
168766
169555
  query?: {
@@ -173465,6 +174254,221 @@ export interface operations {
173465
174254
  403: components["responses"]["Forbidden"];
173466
174255
  };
173467
174256
  };
174257
+ listDevRequests: {
174258
+ parameters: {
174259
+ query?: {
174260
+ org_id?: string;
174261
+ };
174262
+ header?: never;
174263
+ path?: never;
174264
+ cookie?: never;
174265
+ };
174266
+ requestBody?: never;
174267
+ responses: {
174268
+ /** @description The fix requests. */
174269
+ 200: {
174270
+ headers: {
174271
+ [name: string]: unknown;
174272
+ };
174273
+ content: {
174274
+ "application/json": components["schemas"]["DevRequestList"];
174275
+ };
174276
+ };
174277
+ 401: components["responses"]["Unauthorized"];
174278
+ 403: components["responses"]["Forbidden"];
174279
+ 422: components["responses"]["UnprocessableEntity"];
174280
+ };
174281
+ };
174282
+ createDevRequest: {
174283
+ parameters: {
174284
+ query?: never;
174285
+ header?: never;
174286
+ path?: never;
174287
+ cookie?: never;
174288
+ };
174289
+ requestBody: {
174290
+ content: {
174291
+ "application/json": components["schemas"]["DevRequestCreate"];
174292
+ };
174293
+ };
174294
+ responses: {
174295
+ /** @description The request was opened. */
174296
+ 201: {
174297
+ headers: {
174298
+ [name: string]: unknown;
174299
+ };
174300
+ content: {
174301
+ "application/json": components["schemas"]["DevRequest"];
174302
+ };
174303
+ };
174304
+ 401: components["responses"]["Unauthorized"];
174305
+ 403: components["responses"]["Forbidden"];
174306
+ 422: components["responses"]["UnprocessableEntity"];
174307
+ };
174308
+ };
174309
+ getDevRequest: {
174310
+ parameters: {
174311
+ query?: never;
174312
+ header?: never;
174313
+ path: {
174314
+ request_id: components["parameters"]["DevRequestId"];
174315
+ };
174316
+ cookie?: never;
174317
+ };
174318
+ requestBody?: never;
174319
+ responses: {
174320
+ /** @description The fix request. */
174321
+ 200: {
174322
+ headers: {
174323
+ [name: string]: unknown;
174324
+ };
174325
+ content: {
174326
+ "application/json": components["schemas"]["DevRequest"];
174327
+ };
174328
+ };
174329
+ 401: components["responses"]["Unauthorized"];
174330
+ 403: components["responses"]["Forbidden"];
174331
+ 404: components["responses"]["NotFound"];
174332
+ };
174333
+ };
174334
+ acceptDevRequest: {
174335
+ parameters: {
174336
+ query?: never;
174337
+ header?: never;
174338
+ path: {
174339
+ request_id: components["parameters"]["DevRequestId"];
174340
+ };
174341
+ cookie?: never;
174342
+ };
174343
+ requestBody?: never;
174344
+ responses: {
174345
+ /** @description The fix request after the change. */
174346
+ 200: {
174347
+ headers: {
174348
+ [name: string]: unknown;
174349
+ };
174350
+ content: {
174351
+ "application/json": components["schemas"]["DevRequest"];
174352
+ };
174353
+ };
174354
+ 401: components["responses"]["Unauthorized"];
174355
+ 403: components["responses"]["Forbidden"];
174356
+ 404: components["responses"]["NotFound"];
174357
+ 422: components["responses"]["UnprocessableEntity"];
174358
+ };
174359
+ };
174360
+ approveDevRequestEstimate: {
174361
+ parameters: {
174362
+ query?: never;
174363
+ header?: never;
174364
+ path: {
174365
+ request_id: components["parameters"]["DevRequestId"];
174366
+ };
174367
+ cookie?: never;
174368
+ };
174369
+ requestBody: {
174370
+ content: {
174371
+ "application/json": components["schemas"]["DevRequestApprove"];
174372
+ };
174373
+ };
174374
+ responses: {
174375
+ /** @description The fix request after the change. */
174376
+ 200: {
174377
+ headers: {
174378
+ [name: string]: unknown;
174379
+ };
174380
+ content: {
174381
+ "application/json": components["schemas"]["DevRequest"];
174382
+ };
174383
+ };
174384
+ 401: components["responses"]["Unauthorized"];
174385
+ 403: components["responses"]["Forbidden"];
174386
+ 404: components["responses"]["NotFound"];
174387
+ 422: components["responses"]["UnprocessableEntity"];
174388
+ };
174389
+ };
174390
+ cancelDevRequest: {
174391
+ parameters: {
174392
+ query?: never;
174393
+ header?: never;
174394
+ path: {
174395
+ request_id: components["parameters"]["DevRequestId"];
174396
+ };
174397
+ cookie?: never;
174398
+ };
174399
+ requestBody?: never;
174400
+ responses: {
174401
+ /** @description The fix request after the change. */
174402
+ 200: {
174403
+ headers: {
174404
+ [name: string]: unknown;
174405
+ };
174406
+ content: {
174407
+ "application/json": components["schemas"]["DevRequest"];
174408
+ };
174409
+ };
174410
+ 401: components["responses"]["Unauthorized"];
174411
+ 403: components["responses"]["Forbidden"];
174412
+ 404: components["responses"]["NotFound"];
174413
+ 422: components["responses"]["UnprocessableEntity"];
174414
+ };
174415
+ };
174416
+ declineDevRequestEstimate: {
174417
+ parameters: {
174418
+ query?: never;
174419
+ header?: never;
174420
+ path: {
174421
+ request_id: components["parameters"]["DevRequestId"];
174422
+ };
174423
+ cookie?: never;
174424
+ };
174425
+ requestBody?: never;
174426
+ responses: {
174427
+ /** @description The fix request after the change. */
174428
+ 200: {
174429
+ headers: {
174430
+ [name: string]: unknown;
174431
+ };
174432
+ content: {
174433
+ "application/json": components["schemas"]["DevRequest"];
174434
+ };
174435
+ };
174436
+ 401: components["responses"]["Unauthorized"];
174437
+ 403: components["responses"]["Forbidden"];
174438
+ 404: components["responses"]["NotFound"];
174439
+ 422: components["responses"]["UnprocessableEntity"];
174440
+ };
174441
+ };
174442
+ reopenDevRequest: {
174443
+ parameters: {
174444
+ query?: never;
174445
+ header?: never;
174446
+ path: {
174447
+ request_id: components["parameters"]["DevRequestId"];
174448
+ };
174449
+ cookie?: never;
174450
+ };
174451
+ requestBody: {
174452
+ content: {
174453
+ "application/json": components["schemas"]["DevRequestNote"];
174454
+ };
174455
+ };
174456
+ responses: {
174457
+ /** @description The fix request after the change. */
174458
+ 200: {
174459
+ headers: {
174460
+ [name: string]: unknown;
174461
+ };
174462
+ content: {
174463
+ "application/json": components["schemas"]["DevRequest"];
174464
+ };
174465
+ };
174466
+ 401: components["responses"]["Unauthorized"];
174467
+ 403: components["responses"]["Forbidden"];
174468
+ 404: components["responses"]["NotFound"];
174469
+ 422: components["responses"]["UnprocessableEntity"];
174470
+ };
174471
+ };
173468
174472
  getDomainAlerts: {
173469
174473
  parameters: {
173470
174474
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1740",
3
+ "version": "0.1.1742",
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>",