@leaflow/sdk 0.14.2 → 0.16.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.
@@ -0,0 +1,883 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/api/v1/credentials": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** List provider credentials */
14
+ get: operations["list-credentials"];
15
+ put?: never;
16
+ /**
17
+ * Register a provider credential
18
+ * @description The credential is validated against the provider before it is accepted. A credential that
19
+ * cannot list domains is rejected with `CREDENTIAL_REJECTED_UPSTREAM` and is not stored.
20
+ *
21
+ * `provider` selects which configuration block is required: `provider: cloudflare` requires
22
+ * the `cloudflare` block, and the remaining blocks are ignored. Omitting the matching block
23
+ * returns `CREDENTIAL_CONFIG_MISSING`.
24
+ *
25
+ * Registering a credential that is already held by this project returns
26
+ * `CREDENTIAL_DUPLICATE`. Provider rate limits apply per credential, so a second copy grants
27
+ * no additional capacity.
28
+ *
29
+ * The submitted credential material is not returned by this or any other operation.
30
+ */
31
+ post: operations["create-credential"];
32
+ delete?: never;
33
+ options?: never;
34
+ head?: never;
35
+ patch?: never;
36
+ trace?: never;
37
+ };
38
+ "/api/v1/credentials/{credentialId}": {
39
+ parameters: {
40
+ query?: never;
41
+ header?: never;
42
+ path?: never;
43
+ cookie?: never;
44
+ };
45
+ /** Get a provider credential */
46
+ get: operations["get-credential"];
47
+ put?: never;
48
+ post?: never;
49
+ /**
50
+ * Delete a provider credential
51
+ * @description Domains reachable only through this credential stop appearing in `GET /zones` and can no
52
+ * longer be read or written through this API.
53
+ *
54
+ * **No DNS record is modified.** Deleting a credential withdraws this project's access to the
55
+ * provider account; it does not remove anything that was published there.
56
+ */
57
+ delete: operations["delete-credential"];
58
+ options?: never;
59
+ head?: never;
60
+ /**
61
+ * Rename a provider credential
62
+ * @description Only the display name can be changed. To use different credential material, delete this
63
+ * credential and register a new one: a credential's identity does not change over its
64
+ * lifetime.
65
+ */
66
+ patch: operations["rename-credential"];
67
+ trace?: never;
68
+ };
69
+ "/api/v1/credentials/{credentialId}/verification": {
70
+ parameters: {
71
+ query?: never;
72
+ header?: never;
73
+ path?: never;
74
+ cookie?: never;
75
+ };
76
+ get?: never;
77
+ put?: never;
78
+ /**
79
+ * Re-validate a provider credential
80
+ * @description Checks the credential against the provider and records the outcome in `last_verified_at`
81
+ * and `last_verify_error`.
82
+ *
83
+ * A credential is validated when it is registered. This operation exists for credentials whose
84
+ * permissions or keys were subsequently changed at the provider, which is a change this API is
85
+ * not notified of.
86
+ *
87
+ * **A failed check returns 200, not an error.** The outcome is reported in
88
+ * `last_verify_error`: the request itself succeeded, and the answer it obtained is that the
89
+ * credential is no longer usable.
90
+ */
91
+ post: operations["verify-credential"];
92
+ delete?: never;
93
+ options?: never;
94
+ head?: never;
95
+ patch?: never;
96
+ trace?: never;
97
+ };
98
+ "/api/v1/zones": {
99
+ parameters: {
100
+ query?: never;
101
+ header?: never;
102
+ path?: never;
103
+ cookie?: never;
104
+ };
105
+ /**
106
+ * List domains
107
+ * @description Lists every domain reachable through the credentials registered by this project.
108
+ *
109
+ * Listings may briefly lag behind domains added or removed at the provider. Set `refresh` for
110
+ * an up-to-date answer.
111
+ *
112
+ * ## A domain that appears more than once
113
+ *
114
+ * While a domain is being migrated it commonly exists in both provider accounts at once. Such
115
+ * a domain is returned once per credential, with the same `zone` and different
116
+ * `credential_id`.
117
+ *
118
+ * `authoritative` reports which entry is the one currently serving queries, determined from
119
+ * the domain's delegation. `null` means no determination was made: either the domain appears
120
+ * only once, or its delegation does not identify any of the registered providers — for
121
+ * example when custom nameservers are in use, or the domain is not delegated at all.
122
+ *
123
+ * **Write operations are refused while the determination is `null` and the domain appears more
124
+ * than once**, with `ZONE_AMBIGUOUS`. Supply `credential_id` on the write request to select a
125
+ * credential explicitly.
126
+ */
127
+ get: operations["list-zones"];
128
+ put?: never;
129
+ post?: never;
130
+ delete?: never;
131
+ options?: never;
132
+ head?: never;
133
+ patch?: never;
134
+ trace?: never;
135
+ };
136
+ "/api/v1/zones/{zone}/records": {
137
+ parameters: {
138
+ query?: never;
139
+ header?: never;
140
+ path?: never;
141
+ cookie?: never;
142
+ };
143
+ /**
144
+ * List record sets
145
+ * @description Returns the domain's records grouped into record sets: all records sharing a name and a type
146
+ * are reported as one entry, with their values in `values`.
147
+ *
148
+ * `limit` and `offset` reduce the size of the response but not the time taken to produce it.
149
+ * For domains with many records, filter by `name` or `type`.
150
+ */
151
+ get: operations["list-records"];
152
+ put?: never;
153
+ post?: never;
154
+ delete?: never;
155
+ options?: never;
156
+ head?: never;
157
+ patch?: never;
158
+ trace?: never;
159
+ };
160
+ "/api/v1/zones/{zone}/records/{name}/{type}": {
161
+ parameters: {
162
+ query?: never;
163
+ header?: never;
164
+ path?: never;
165
+ cookie?: never;
166
+ };
167
+ /**
168
+ * Get a record set
169
+ * @description Returns `RECORD_SET_NOT_FOUND` when no record of this type exists under this name.
170
+ */
171
+ get: operations["get-record-set"];
172
+ /**
173
+ * Replace a record set
174
+ * @description **This replaces the entire record set.** After this request, the only records under this
175
+ * name and type are the ones listed in `values`; any value present beforehand and absent here
176
+ * is removed.
177
+ *
178
+ * The record set is created if it does not exist, so this operation both creates and replaces,
179
+ * and is idempotent.
180
+ *
181
+ * Two concurrent requests against the same domain conflict; the second receives `ZONE_BUSY`
182
+ * and may be retried.
183
+ *
184
+ * **Use `PATCH` to add or remove individual values.** Reading the set and submitting a
185
+ * modified list is a read-modify-write: values added by anything else between those two steps
186
+ * are stated to be absent, and are therefore removed, with both requests returning 200.
187
+ */
188
+ put: operations["set-record-set"];
189
+ post?: never;
190
+ /**
191
+ * Delete a record set
192
+ * @description Removes every record under this name and type. **To remove part of a set, use `PATCH`**,
193
+ * which is safe to issue concurrently; this operation and `PUT` are not.
194
+ *
195
+ * Providers reject removal of the last NS record set at the apex of a domain, which would
196
+ * withdraw the domain from DNS entirely.
197
+ */
198
+ delete: operations["delete-record-set"];
199
+ options?: never;
200
+ head?: never;
201
+ /**
202
+ * Add or remove values in a record set
203
+ * @description **Names values to add and remove; anything not named is left in place.** Nothing is read
204
+ * first, so this is the only operation on a record set safe to issue concurrently. The set is
205
+ * created if it does not exist.
206
+ *
207
+ * Certificate issuance must use this operation for both the challenge record and its cleanup.
208
+ * `PUT` and `DELETE` state or remove the whole set, so a concurrent issuance's challenge
209
+ * record is discarded — with every request returning 2xx, and the failure surfacing as the
210
+ * second certificate failing validation.
211
+ *
212
+ * `add` is applied before `remove`, so a request carrying both changes a value without the
213
+ * name ever resolving without it: the set briefly holds one value too many rather than one too
214
+ * few. The reverse order, as two requests, leaves a window in which the value is absent — for
215
+ * a single-valued set, the name does not resolve at all — and an addition that then fails
216
+ * leaves it gone.
217
+ *
218
+ * A value appearing in both `add` and `remove` is rejected rather than resolved in one
219
+ * direction.
220
+ *
221
+ * Values in `remove` that are absent are skipped, so a retried cleanup reaches the same
222
+ * result. Values in `add` that are already present are rejected by the provider: a record set
223
+ * cannot hold the same value twice.
224
+ *
225
+ * Removing every value leaves an empty set, reported as `values: []`, not `RECORD_SET_NOT_FOUND`.
226
+ */
227
+ patch: operations["modify-record-set"];
228
+ trace?: never;
229
+ };
230
+ }
231
+ export type webhooks = Record<string, never>;
232
+ export interface components {
233
+ schemas: {
234
+ Error: {
235
+ code?: string;
236
+ message: string;
237
+ meta?: {
238
+ [key: string]: unknown;
239
+ };
240
+ /** Format: int64 */
241
+ status: number;
242
+ };
243
+ /**
244
+ * @description A DNS record type.
245
+ *
246
+ * The listed types are those this API supports uniformly across every provider. HTTPS and
247
+ * SVCB are not yet available.
248
+ * @enum {string}
249
+ */
250
+ RecordType: "A" | "AAAA" | "CNAME" | "TXT" | "MX" | "NS" | "SRV" | "CAA";
251
+ /**
252
+ * @description A supported DNS provider.
253
+ * @enum {string}
254
+ */
255
+ Provider: "cloudflare" | "tencentcloud" | "alidns" | "route53";
256
+ /**
257
+ * @description `active` is usable. `disabled` means the platform has disabled this credential and requires
258
+ * contact with support.
259
+ *
260
+ * A project that has been suspended is reported separately, in `suspended_at`.
261
+ * @enum {string}
262
+ */
263
+ CredentialStatus: "active" | "disabled";
264
+ /** @description A registered provider credential. The credential material itself is never included. */
265
+ CredentialResource: {
266
+ /** Format: date-time */
267
+ created_at: string;
268
+ /** @description Equal fingerprints denote the same credential material */
269
+ fingerprint: string;
270
+ /** Format: uuid */
271
+ id: string;
272
+ /**
273
+ * Format: date-time
274
+ * @description When the credential was last confirmed to work; null if it never has
275
+ */
276
+ last_verified_at: string | null;
277
+ /** @description Why the most recent check failed; null if the most recent check succeeded */
278
+ last_verify_error: string | null;
279
+ name: string;
280
+ provider: components["schemas"]["Provider"];
281
+ /** @description A partially masked fragment of the credential, for visual identification only */
282
+ redacted: string;
283
+ status: components["schemas"]["CredentialStatus"];
284
+ /**
285
+ * Format: date-time
286
+ * @description When the credential was suspended because the project was suspended; null if it was not. Cleared when the project is restored
287
+ */
288
+ suspended_at: string | null;
289
+ /** Format: date-time */
290
+ updated_at: string;
291
+ };
292
+ /** @description Cloudflare credentials, created under My Profile then API Tokens */
293
+ CloudflareConfig: {
294
+ /** @description An API token with the Zone.DNS edit permission */
295
+ api_token: string;
296
+ /** @description Optional, and required only when api_token is scoped to a single zone, in which case it is used to enumerate zones */
297
+ zone_token?: string;
298
+ };
299
+ /** @description Tencent Cloud DNSPod credentials, created under Access Management then Access Keys */
300
+ TencentCloudConfig: {
301
+ secret_id: string;
302
+ secret_key: string;
303
+ };
304
+ /** @description Alibaba Cloud DNS credentials, created under RAM */
305
+ AliDNSConfig: {
306
+ access_key_id: string;
307
+ access_key_secret: string;
308
+ /** @description Defaults to cn-hangzhou */
309
+ region_id?: string;
310
+ };
311
+ /** @description AWS Route 53 credentials */
312
+ Route53Config: {
313
+ access_key_id: string;
314
+ /** @description Defaults to us-east-1. Route 53 is a global service, so this affects request signing only */
315
+ region?: string;
316
+ secret_access_key: string;
317
+ /** @description Optional, and required only for temporary STS credentials. Such credentials expire, after which every operation against this provider fails */
318
+ session_token?: string;
319
+ };
320
+ /** @description `provider` selects which configuration block is read. The remaining blocks are ignored. */
321
+ CreateCredentialRequestBody: {
322
+ alidns?: components["schemas"]["AliDNSConfig"];
323
+ cloudflare?: components["schemas"]["CloudflareConfig"];
324
+ /** @description A display name for this credential */
325
+ name: string;
326
+ provider: components["schemas"]["Provider"];
327
+ route53?: components["schemas"]["Route53Config"];
328
+ tencentcloud?: components["schemas"]["TencentCloudConfig"];
329
+ };
330
+ RenameCredentialRequestBody: {
331
+ name: string;
332
+ };
333
+ LengthAwarePageCredentialResource: {
334
+ /** @description The contents of this page */
335
+ items: components["schemas"]["CredentialResource"][];
336
+ /**
337
+ * Format: int64
338
+ * @description Maximum items per page, echoing the value in the request
339
+ */
340
+ limit: number;
341
+ /**
342
+ * Format: int64
343
+ * @description Items skipped, echoing the value in the request
344
+ */
345
+ offset: number;
346
+ /**
347
+ * Format: int64
348
+ * @description Total number of matching items, not only those in this page
349
+ */
350
+ total: number;
351
+ };
352
+ ZoneResource: {
353
+ /**
354
+ * @description Whether this entry is the one currently serving queries for the domain.
355
+ *
356
+ * `null` means no determination was made: either the domain appears only once, or its
357
+ * delegation does not identify any registered provider. While this is `null` and the
358
+ * domain appears more than once, write operations require an explicit `credential_id`.
359
+ */
360
+ authoritative: boolean | null;
361
+ /**
362
+ * Format: uuid
363
+ * @description The credential through which this domain is reachable
364
+ */
365
+ credential_id: string;
366
+ provider: components["schemas"]["Provider"];
367
+ /** @description The domain in absolute form, with a trailing dot */
368
+ zone: string;
369
+ };
370
+ ZoneListResponseBody: {
371
+ items: components["schemas"]["ZoneResource"][];
372
+ /**
373
+ * @description True when at least one provider could not be reached while producing this listing, so
374
+ * recent additions or removals may be missing.
375
+ *
376
+ * The listing remains usable and write operations are unaffected.
377
+ */
378
+ stale: boolean;
379
+ };
380
+ /** @description Every record sharing a name and a type. */
381
+ RecordSetResource: {
382
+ /** @description The name relative to the domain. `@` denotes the domain itself */
383
+ name: string;
384
+ /**
385
+ * Format: int64
386
+ * @description Time to live, in seconds. 0 leaves the choice to the provider
387
+ */
388
+ ttl: number;
389
+ type: components["schemas"]["RecordType"];
390
+ /**
391
+ * @description Every value in this record set, in unescaped zone-file RDATA syntax:
392
+ *
393
+ * - `A`, `AAAA`: `192.0.2.1`, `2001:db8::1`
394
+ * - `CNAME`, `NS`: `target.example.com.`, absolute, with a trailing dot
395
+ * - `TXT`: the text itself, neither quoted nor escaped
396
+ * - `MX`: `10 mail.example.com.`
397
+ * - `SRV`: `10 20 443 target.example.com.`
398
+ * - `CAA`: `0 issue "letsencrypt.org"`
399
+ */
400
+ values: string[];
401
+ /** @description The domain in absolute form, with a trailing dot */
402
+ zone: string;
403
+ };
404
+ LengthAwarePageRecordSetResource: {
405
+ /** @description The contents of this page */
406
+ items: components["schemas"]["RecordSetResource"][];
407
+ /**
408
+ * Format: int64
409
+ * @description Maximum items per page, echoing the value in the request
410
+ */
411
+ limit: number;
412
+ /**
413
+ * Format: int64
414
+ * @description Items skipped, echoing the value in the request
415
+ */
416
+ offset: number;
417
+ /**
418
+ * Format: int64
419
+ * @description Total number of matching items, not only those in this page
420
+ */
421
+ total: number;
422
+ };
423
+ /** @description `values` states the final contents of the record set. Values omitted here are removed. */
424
+ SetRecordSetRequestBody: {
425
+ /**
426
+ * Format: int64
427
+ * @description Time to live, in seconds. 0 leaves the choice to the provider. Providers enforce their own minimum and raise lower values to it
428
+ * @default 300
429
+ */
430
+ ttl?: number;
431
+ /** @description The final contents of the record set. Syntax as described on RecordSetResource.values */
432
+ values: string[];
433
+ };
434
+ /** @description Names the values to add and to remove. Anything not named is left in place. At least one of `add` and `remove` is required, and no value may appear in both. */
435
+ ModifyRecordSetRequestBody: {
436
+ /** @description The values to add. Values already present are rejected by the provider. Syntax as described on RecordSetResource.values */
437
+ add?: string[];
438
+ /** @description The values to remove. Values that are not present are skipped. Syntax as described on RecordSetResource.values */
439
+ remove?: string[];
440
+ /**
441
+ * Format: int64
442
+ * @description Time to live, in seconds, applied to the values in `add`. 0 leaves the choice to the provider. The time to live of values already in the set is not changed; use `PUT` for that
443
+ * @default 300
444
+ */
445
+ ttl?: number;
446
+ };
447
+ };
448
+ responses: never;
449
+ parameters: never;
450
+ requestBodies: never;
451
+ headers: never;
452
+ pathItems: never;
453
+ }
454
+ export type $defs = Record<string, never>;
455
+ export interface operations {
456
+ "list-credentials": {
457
+ parameters: {
458
+ query?: {
459
+ /** @description Maximum number of items to return in this page */
460
+ limit?: number;
461
+ /** @description Number of items to skip */
462
+ offset?: number;
463
+ /** @description Return only credentials for this provider; omit for all providers */
464
+ provider?: components["schemas"]["Provider"];
465
+ };
466
+ header?: never;
467
+ path?: never;
468
+ cookie?: never;
469
+ };
470
+ requestBody?: never;
471
+ responses: {
472
+ /** @description OK */
473
+ 200: {
474
+ headers: {
475
+ [name: string]: unknown;
476
+ };
477
+ content: {
478
+ "application/json": components["schemas"]["LengthAwarePageCredentialResource"];
479
+ };
480
+ };
481
+ /** @description Error */
482
+ default: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["Error"];
488
+ };
489
+ };
490
+ };
491
+ };
492
+ "create-credential": {
493
+ parameters: {
494
+ query?: never;
495
+ header?: never;
496
+ path?: never;
497
+ cookie?: never;
498
+ };
499
+ requestBody: {
500
+ content: {
501
+ "application/json": components["schemas"]["CreateCredentialRequestBody"];
502
+ };
503
+ };
504
+ responses: {
505
+ /** @description Created */
506
+ 201: {
507
+ headers: {
508
+ [name: string]: unknown;
509
+ };
510
+ content: {
511
+ "application/json": components["schemas"]["CredentialResource"];
512
+ };
513
+ };
514
+ /** @description Error */
515
+ default: {
516
+ headers: {
517
+ [name: string]: unknown;
518
+ };
519
+ content: {
520
+ "application/json": components["schemas"]["Error"];
521
+ };
522
+ };
523
+ };
524
+ };
525
+ "get-credential": {
526
+ parameters: {
527
+ query?: never;
528
+ header?: never;
529
+ path: {
530
+ credentialId: string;
531
+ };
532
+ cookie?: never;
533
+ };
534
+ requestBody?: never;
535
+ responses: {
536
+ /** @description OK */
537
+ 200: {
538
+ headers: {
539
+ [name: string]: unknown;
540
+ };
541
+ content: {
542
+ "application/json": components["schemas"]["CredentialResource"];
543
+ };
544
+ };
545
+ /** @description Error */
546
+ default: {
547
+ headers: {
548
+ [name: string]: unknown;
549
+ };
550
+ content: {
551
+ "application/json": components["schemas"]["Error"];
552
+ };
553
+ };
554
+ };
555
+ };
556
+ "delete-credential": {
557
+ parameters: {
558
+ query?: never;
559
+ header?: never;
560
+ path: {
561
+ credentialId: string;
562
+ };
563
+ cookie?: never;
564
+ };
565
+ requestBody?: never;
566
+ responses: {
567
+ /** @description No Content */
568
+ 204: {
569
+ headers: {
570
+ [name: string]: unknown;
571
+ };
572
+ content?: never;
573
+ };
574
+ /** @description Error */
575
+ default: {
576
+ headers: {
577
+ [name: string]: unknown;
578
+ };
579
+ content: {
580
+ "application/json": components["schemas"]["Error"];
581
+ };
582
+ };
583
+ };
584
+ };
585
+ "rename-credential": {
586
+ parameters: {
587
+ query?: never;
588
+ header?: never;
589
+ path: {
590
+ credentialId: string;
591
+ };
592
+ cookie?: never;
593
+ };
594
+ requestBody: {
595
+ content: {
596
+ "application/json": components["schemas"]["RenameCredentialRequestBody"];
597
+ };
598
+ };
599
+ responses: {
600
+ /** @description OK */
601
+ 200: {
602
+ headers: {
603
+ [name: string]: unknown;
604
+ };
605
+ content: {
606
+ "application/json": components["schemas"]["CredentialResource"];
607
+ };
608
+ };
609
+ /** @description Error */
610
+ default: {
611
+ headers: {
612
+ [name: string]: unknown;
613
+ };
614
+ content: {
615
+ "application/json": components["schemas"]["Error"];
616
+ };
617
+ };
618
+ };
619
+ };
620
+ "verify-credential": {
621
+ parameters: {
622
+ query?: never;
623
+ header?: never;
624
+ path: {
625
+ credentialId: string;
626
+ };
627
+ cookie?: never;
628
+ };
629
+ requestBody?: never;
630
+ responses: {
631
+ /** @description OK */
632
+ 200: {
633
+ headers: {
634
+ [name: string]: unknown;
635
+ };
636
+ content: {
637
+ "application/json": components["schemas"]["CredentialResource"];
638
+ };
639
+ };
640
+ /** @description Error */
641
+ default: {
642
+ headers: {
643
+ [name: string]: unknown;
644
+ };
645
+ content: {
646
+ "application/json": components["schemas"]["Error"];
647
+ };
648
+ };
649
+ };
650
+ };
651
+ "list-zones": {
652
+ parameters: {
653
+ query?: {
654
+ /** @description Return only domains reachable through this credential */
655
+ credential_id?: string;
656
+ /** @description Return the current set of domains rather than a possibly slightly stale one. Slower, and consumes provider API quota */
657
+ refresh?: boolean;
658
+ };
659
+ header?: never;
660
+ path?: never;
661
+ cookie?: never;
662
+ };
663
+ requestBody?: never;
664
+ responses: {
665
+ /** @description OK */
666
+ 200: {
667
+ headers: {
668
+ [name: string]: unknown;
669
+ };
670
+ content: {
671
+ "application/json": components["schemas"]["ZoneListResponseBody"];
672
+ };
673
+ };
674
+ /** @description Error */
675
+ default: {
676
+ headers: {
677
+ [name: string]: unknown;
678
+ };
679
+ content: {
680
+ "application/json": components["schemas"]["Error"];
681
+ };
682
+ };
683
+ };
684
+ };
685
+ "list-records": {
686
+ parameters: {
687
+ query?: {
688
+ /** @description Which credential to use. When omitted, the credential is determined from the domain; see ZONE_AMBIGUOUS */
689
+ credential_id?: string;
690
+ /** @description Return only record sets with this name, given relative to the domain. `@` denotes the domain itself */
691
+ name?: string;
692
+ /** @description Return only record sets of this type */
693
+ type?: components["schemas"]["RecordType"];
694
+ /** @description Maximum number of items to return in this page */
695
+ limit?: number;
696
+ /** @description Number of items to skip */
697
+ offset?: number;
698
+ };
699
+ header?: never;
700
+ path: {
701
+ /** @description The domain. A trailing dot is optional */
702
+ zone: string;
703
+ };
704
+ cookie?: never;
705
+ };
706
+ requestBody?: never;
707
+ responses: {
708
+ /** @description OK */
709
+ 200: {
710
+ headers: {
711
+ [name: string]: unknown;
712
+ };
713
+ content: {
714
+ "application/json": components["schemas"]["LengthAwarePageRecordSetResource"];
715
+ };
716
+ };
717
+ /** @description Error */
718
+ default: {
719
+ headers: {
720
+ [name: string]: unknown;
721
+ };
722
+ content: {
723
+ "application/json": components["schemas"]["Error"];
724
+ };
725
+ };
726
+ };
727
+ };
728
+ "get-record-set": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path: {
733
+ /** @description The domain. A trailing dot is optional */
734
+ zone: string;
735
+ /** @description The name, given relative to the domain. `@` denotes the domain itself and `*` a wildcard */
736
+ name: string;
737
+ type: components["schemas"]["RecordType"];
738
+ };
739
+ cookie?: never;
740
+ };
741
+ requestBody?: never;
742
+ responses: {
743
+ /** @description OK */
744
+ 200: {
745
+ headers: {
746
+ [name: string]: unknown;
747
+ };
748
+ content: {
749
+ "application/json": components["schemas"]["RecordSetResource"];
750
+ };
751
+ };
752
+ /** @description Error */
753
+ default: {
754
+ headers: {
755
+ [name: string]: unknown;
756
+ };
757
+ content: {
758
+ "application/json": components["schemas"]["Error"];
759
+ };
760
+ };
761
+ };
762
+ };
763
+ "set-record-set": {
764
+ parameters: {
765
+ query?: {
766
+ /** @description Which credential to use. When omitted, the credential is determined from the domain; see ZONE_AMBIGUOUS */
767
+ credential_id?: string;
768
+ };
769
+ header?: never;
770
+ path: {
771
+ /** @description The domain. A trailing dot is optional */
772
+ zone: string;
773
+ /** @description The name, given relative to the domain. `@` denotes the domain itself and `*` a wildcard */
774
+ name: string;
775
+ type: components["schemas"]["RecordType"];
776
+ };
777
+ cookie?: never;
778
+ };
779
+ requestBody: {
780
+ content: {
781
+ "application/json": components["schemas"]["SetRecordSetRequestBody"];
782
+ };
783
+ };
784
+ responses: {
785
+ /** @description OK */
786
+ 200: {
787
+ headers: {
788
+ [name: string]: unknown;
789
+ };
790
+ content: {
791
+ "application/json": components["schemas"]["RecordSetResource"];
792
+ };
793
+ };
794
+ /** @description Error */
795
+ default: {
796
+ headers: {
797
+ [name: string]: unknown;
798
+ };
799
+ content: {
800
+ "application/json": components["schemas"]["Error"];
801
+ };
802
+ };
803
+ };
804
+ };
805
+ "delete-record-set": {
806
+ parameters: {
807
+ query?: {
808
+ /** @description Which credential to use. When omitted, the credential is determined from the domain; see ZONE_AMBIGUOUS */
809
+ credential_id?: string;
810
+ };
811
+ header?: never;
812
+ path: {
813
+ /** @description The domain. A trailing dot is optional */
814
+ zone: string;
815
+ /** @description The name, given relative to the domain. `@` denotes the domain itself and `*` a wildcard */
816
+ name: string;
817
+ type: components["schemas"]["RecordType"];
818
+ };
819
+ cookie?: never;
820
+ };
821
+ requestBody?: never;
822
+ responses: {
823
+ /** @description No Content */
824
+ 204: {
825
+ headers: {
826
+ [name: string]: unknown;
827
+ };
828
+ content?: never;
829
+ };
830
+ /** @description Error */
831
+ default: {
832
+ headers: {
833
+ [name: string]: unknown;
834
+ };
835
+ content: {
836
+ "application/json": components["schemas"]["Error"];
837
+ };
838
+ };
839
+ };
840
+ };
841
+ "modify-record-set": {
842
+ parameters: {
843
+ query?: {
844
+ /** @description Which credential to use. When omitted, the credential is determined from the domain; see ZONE_AMBIGUOUS */
845
+ credential_id?: string;
846
+ };
847
+ header?: never;
848
+ path: {
849
+ /** @description The domain. A trailing dot is optional */
850
+ zone: string;
851
+ /** @description The name, given relative to the domain. `@` denotes the domain itself and `*` a wildcard */
852
+ name: string;
853
+ type: components["schemas"]["RecordType"];
854
+ };
855
+ cookie?: never;
856
+ };
857
+ requestBody: {
858
+ content: {
859
+ "application/json": components["schemas"]["ModifyRecordSetRequestBody"];
860
+ };
861
+ };
862
+ responses: {
863
+ /** @description OK */
864
+ 200: {
865
+ headers: {
866
+ [name: string]: unknown;
867
+ };
868
+ content: {
869
+ "application/json": components["schemas"]["RecordSetResource"];
870
+ };
871
+ };
872
+ /** @description Error */
873
+ default: {
874
+ headers: {
875
+ [name: string]: unknown;
876
+ };
877
+ content: {
878
+ "application/json": components["schemas"]["Error"];
879
+ };
880
+ };
881
+ };
882
+ };
883
+ }