@appwrite.io/console 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +99 -7
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +100 -8
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +99 -7
- package/docs/examples/domains/list-suggestions.md +18 -0
- package/docs/examples/health/get-queue-audits.md +13 -0
- package/docs/examples/organizations/create.md +2 -2
- package/docs/examples/organizations/estimation-create-organization.md +2 -2
- package/docs/examples/organizations/estimation-update-plan.md +2 -2
- package/docs/examples/organizations/update-plan.md +2 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/billing-plan.ts +17 -0
- package/src/enums/filter-type.ts +4 -0
- package/src/enums/name.ts +1 -0
- package/src/enums/o-auth-provider.ts +0 -2
- package/src/index.ts +2 -0
- package/src/models.ts +437 -375
- package/src/services/account.ts +20 -20
- package/src/services/avatars.ts +117 -117
- package/src/services/backups.ts +18 -18
- package/src/services/console.ts +24 -24
- package/src/services/databases.ts +89 -89
- package/src/services/domains.ts +295 -204
- package/src/services/functions.ts +30 -30
- package/src/services/health.ts +201 -152
- package/src/services/messaging.ts +54 -54
- package/src/services/migrations.ts +36 -36
- package/src/services/organizations.ts +67 -66
- package/src/services/projects.ts +81 -81
- package/src/services/sites.ts +30 -30
- package/src/services/storage.ts +45 -45
- package/src/services/tables-db.ts +89 -89
- package/src/services/users.ts +39 -39
- package/types/enums/billing-plan.d.ts +17 -0
- package/types/enums/filter-type.d.ts +4 -0
- package/types/enums/name.d.ts +1 -0
- package/types/enums/o-auth-provider.d.ts +0 -2
- package/types/index.d.ts +2 -0
- package/types/models.d.ts +434 -375
- package/types/services/account.d.ts +11 -11
- package/types/services/avatars.d.ts +82 -82
- package/types/services/backups.d.ts +8 -8
- package/types/services/console.d.ts +14 -14
- package/types/services/databases.d.ts +50 -50
- package/types/services/domains.d.ts +139 -104
- package/types/services/functions.d.ts +15 -15
- package/types/services/health.d.ts +95 -78
- package/types/services/messaging.d.ts +24 -24
- package/types/services/migrations.d.ts +16 -16
- package/types/services/organizations.d.ts +37 -36
- package/types/services/projects.d.ts +36 -36
- package/types/services/sites.d.ts +15 -15
- package/types/services/storage.d.ts +30 -30
- package/types/services/tables-db.d.ts +50 -50
- package/types/services/users.d.ts +24 -24
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { FilterType } from '../enums/filter-type';
|
|
3
4
|
export declare class Domains {
|
|
4
5
|
client: Client;
|
|
5
6
|
constructor(client: Client);
|
|
@@ -47,6 +48,40 @@ export declare class Domains {
|
|
|
47
48
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
48
49
|
*/
|
|
49
50
|
create(teamId: string, domain: string): Promise<Models.Domain>;
|
|
51
|
+
/**
|
|
52
|
+
* List domain suggestions.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} params.query - Query to find available domains and suggestions. Max length: 256 chars.
|
|
55
|
+
* @param {string[]} params.tlds - TLDs to suggest.
|
|
56
|
+
* @param {number} params.limit - Maximum number of suggestions to return.
|
|
57
|
+
* @param {FilterType} params.filterType - Filter type: premium, suggestion.
|
|
58
|
+
* @param {number} params.priceMax - Filter premium domains by maximum price. Only premium domains at or below this price will be returned. Does not affect regular domain suggestions.
|
|
59
|
+
* @param {number} params.priceMin - Filter premium domains by minimum price. Only premium domains at or above this price will be returned. Does not affect regular domain suggestions.
|
|
60
|
+
* @throws {AppwriteException}
|
|
61
|
+
* @returns {Promise<Models.DomainSuggestionsList>}
|
|
62
|
+
*/
|
|
63
|
+
listSuggestions(params: {
|
|
64
|
+
query: string;
|
|
65
|
+
tlds?: string[];
|
|
66
|
+
limit?: number;
|
|
67
|
+
filterType?: FilterType;
|
|
68
|
+
priceMax?: number;
|
|
69
|
+
priceMin?: number;
|
|
70
|
+
}): Promise<Models.DomainSuggestionsList>;
|
|
71
|
+
/**
|
|
72
|
+
* List domain suggestions.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} query - Query to find available domains and suggestions. Max length: 256 chars.
|
|
75
|
+
* @param {string[]} tlds - TLDs to suggest.
|
|
76
|
+
* @param {number} limit - Maximum number of suggestions to return.
|
|
77
|
+
* @param {FilterType} filterType - Filter type: premium, suggestion.
|
|
78
|
+
* @param {number} priceMax - Filter premium domains by maximum price. Only premium domains at or below this price will be returned. Does not affect regular domain suggestions.
|
|
79
|
+
* @param {number} priceMin - Filter premium domains by minimum price. Only premium domains at or above this price will be returned. Does not affect regular domain suggestions.
|
|
80
|
+
* @throws {AppwriteException}
|
|
81
|
+
* @returns {Promise<Models.DomainSuggestionsList>}
|
|
82
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
83
|
+
*/
|
|
84
|
+
listSuggestions(query: string, tlds?: string[], limit?: number, filterType?: FilterType, priceMax?: number, priceMin?: number): Promise<Models.DomainSuggestionsList>;
|
|
50
85
|
/**
|
|
51
86
|
* Get a domain by its unique ID.
|
|
52
87
|
*
|
|
@@ -381,7 +416,7 @@ export declare class Domains {
|
|
|
381
416
|
* @param {string} params.domainId - Domain unique ID.
|
|
382
417
|
* @param {string} params.name - Record name (subdomain).
|
|
383
418
|
* @param {string} params.value - IPv4 address for this A record.
|
|
384
|
-
* @param {number
|
|
419
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
385
420
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
386
421
|
* @throws {AppwriteException}
|
|
387
422
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -390,7 +425,7 @@ export declare class Domains {
|
|
|
390
425
|
domainId: string;
|
|
391
426
|
name: string;
|
|
392
427
|
value: string;
|
|
393
|
-
ttl: number
|
|
428
|
+
ttl: number;
|
|
394
429
|
comment?: string;
|
|
395
430
|
}): Promise<Models.DnsRecord>;
|
|
396
431
|
/**
|
|
@@ -400,13 +435,13 @@ export declare class Domains {
|
|
|
400
435
|
* @param {string} domainId - Domain unique ID.
|
|
401
436
|
* @param {string} name - Record name (subdomain).
|
|
402
437
|
* @param {string} value - IPv4 address for this A record.
|
|
403
|
-
* @param {number
|
|
438
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
404
439
|
* @param {string} comment - A comment explaining what this record is for.
|
|
405
440
|
* @throws {AppwriteException}
|
|
406
441
|
* @returns {Promise<Models.DnsRecord>}
|
|
407
442
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
408
443
|
*/
|
|
409
|
-
createRecordA(domainId: string, name: string, value: string, ttl: number
|
|
444
|
+
createRecordA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
410
445
|
/**
|
|
411
446
|
* Update an existing A record for the given domain. This endpoint allows you to modify
|
|
412
447
|
* the properties of an A record including its name (subdomain), IPv4 address, TTL,
|
|
@@ -416,7 +451,7 @@ export declare class Domains {
|
|
|
416
451
|
* @param {string} params.recordId - DNS record unique ID.
|
|
417
452
|
* @param {string} params.name - Record name (subdomain).
|
|
418
453
|
* @param {string} params.value - IPv4 address for this A record.
|
|
419
|
-
* @param {number
|
|
454
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
420
455
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
421
456
|
* @throws {AppwriteException}
|
|
422
457
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -426,7 +461,7 @@ export declare class Domains {
|
|
|
426
461
|
recordId: string;
|
|
427
462
|
name: string;
|
|
428
463
|
value: string;
|
|
429
|
-
ttl: number
|
|
464
|
+
ttl: number;
|
|
430
465
|
comment?: string;
|
|
431
466
|
}): Promise<Models.DnsRecord>;
|
|
432
467
|
/**
|
|
@@ -438,13 +473,13 @@ export declare class Domains {
|
|
|
438
473
|
* @param {string} recordId - DNS record unique ID.
|
|
439
474
|
* @param {string} name - Record name (subdomain).
|
|
440
475
|
* @param {string} value - IPv4 address for this A record.
|
|
441
|
-
* @param {number
|
|
476
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
442
477
|
* @param {string} comment - A comment explaining what this record is for.
|
|
443
478
|
* @throws {AppwriteException}
|
|
444
479
|
* @returns {Promise<Models.DnsRecord>}
|
|
445
480
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
446
481
|
*/
|
|
447
|
-
updateRecordA(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
482
|
+
updateRecordA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
448
483
|
/**
|
|
449
484
|
* Create a new AAAA record for the given domain. This endpoint allows you to add a new IPv6 DNS record
|
|
450
485
|
* to your domain. The record will be used to point a hostname to an IPv6 address.
|
|
@@ -452,7 +487,7 @@ export declare class Domains {
|
|
|
452
487
|
* @param {string} params.domainId - Domain unique ID.
|
|
453
488
|
* @param {string} params.name - Record name (subdomain).
|
|
454
489
|
* @param {string} params.value - IPv6 address for this AAAA record.
|
|
455
|
-
* @param {number
|
|
490
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
456
491
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
457
492
|
* @throws {AppwriteException}
|
|
458
493
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -461,7 +496,7 @@ export declare class Domains {
|
|
|
461
496
|
domainId: string;
|
|
462
497
|
name: string;
|
|
463
498
|
value: string;
|
|
464
|
-
ttl: number
|
|
499
|
+
ttl: number;
|
|
465
500
|
comment?: string;
|
|
466
501
|
}): Promise<Models.DnsRecord>;
|
|
467
502
|
/**
|
|
@@ -471,13 +506,13 @@ export declare class Domains {
|
|
|
471
506
|
* @param {string} domainId - Domain unique ID.
|
|
472
507
|
* @param {string} name - Record name (subdomain).
|
|
473
508
|
* @param {string} value - IPv6 address for this AAAA record.
|
|
474
|
-
* @param {number
|
|
509
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
475
510
|
* @param {string} comment - A comment explaining what this record is for.
|
|
476
511
|
* @throws {AppwriteException}
|
|
477
512
|
* @returns {Promise<Models.DnsRecord>}
|
|
478
513
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
479
514
|
*/
|
|
480
|
-
createRecordAAAA(domainId: string, name: string, value: string, ttl: number
|
|
515
|
+
createRecordAAAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
481
516
|
/**
|
|
482
517
|
* Update an existing AAAA record for the given domain. This endpoint allows you to modify
|
|
483
518
|
* the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
|
|
@@ -487,7 +522,7 @@ export declare class Domains {
|
|
|
487
522
|
* @param {string} params.recordId - DNS record unique ID.
|
|
488
523
|
* @param {string} params.name - Record name (subdomain).
|
|
489
524
|
* @param {string} params.value - IPv6 address for this AAAA record.
|
|
490
|
-
* @param {number
|
|
525
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
491
526
|
* @param {string} params.comment - A comment for this record.
|
|
492
527
|
* @throws {AppwriteException}
|
|
493
528
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -497,7 +532,7 @@ export declare class Domains {
|
|
|
497
532
|
recordId: string;
|
|
498
533
|
name: string;
|
|
499
534
|
value: string;
|
|
500
|
-
ttl: number
|
|
535
|
+
ttl: number;
|
|
501
536
|
comment?: string;
|
|
502
537
|
}): Promise<Models.DnsRecord>;
|
|
503
538
|
/**
|
|
@@ -509,13 +544,13 @@ export declare class Domains {
|
|
|
509
544
|
* @param {string} recordId - DNS record unique ID.
|
|
510
545
|
* @param {string} name - Record name (subdomain).
|
|
511
546
|
* @param {string} value - IPv6 address for this AAAA record.
|
|
512
|
-
* @param {number
|
|
547
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
513
548
|
* @param {string} comment - A comment for this record.
|
|
514
549
|
* @throws {AppwriteException}
|
|
515
550
|
* @returns {Promise<Models.DnsRecord>}
|
|
516
551
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
517
552
|
*/
|
|
518
|
-
updateRecordAAAA(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
553
|
+
updateRecordAAAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
519
554
|
/**
|
|
520
555
|
* Create a new ALIAS record for the given domain. This record type can be used to point your domain
|
|
521
556
|
* to another domain name that will serve as an alias. This is particularly useful when you want to
|
|
@@ -524,7 +559,7 @@ export declare class Domains {
|
|
|
524
559
|
* @param {string} params.domainId - Domain unique ID.
|
|
525
560
|
* @param {string} params.name - Record name.
|
|
526
561
|
* @param {string} params.value - Target domain for this ALIAS record.
|
|
527
|
-
* @param {number
|
|
562
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
528
563
|
* @param {string} params.comment - A comment for this record.
|
|
529
564
|
* @throws {AppwriteException}
|
|
530
565
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -533,7 +568,7 @@ export declare class Domains {
|
|
|
533
568
|
domainId: string;
|
|
534
569
|
name: string;
|
|
535
570
|
value: string;
|
|
536
|
-
ttl: number
|
|
571
|
+
ttl: number;
|
|
537
572
|
comment?: string;
|
|
538
573
|
}): Promise<Models.DnsRecord>;
|
|
539
574
|
/**
|
|
@@ -544,13 +579,13 @@ export declare class Domains {
|
|
|
544
579
|
* @param {string} domainId - Domain unique ID.
|
|
545
580
|
* @param {string} name - Record name.
|
|
546
581
|
* @param {string} value - Target domain for this ALIAS record.
|
|
547
|
-
* @param {number
|
|
582
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
548
583
|
* @param {string} comment - A comment for this record.
|
|
549
584
|
* @throws {AppwriteException}
|
|
550
585
|
* @returns {Promise<Models.DnsRecord>}
|
|
551
586
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
552
587
|
*/
|
|
553
|
-
createRecordAlias(domainId: string, name: string, value: string, ttl: number
|
|
588
|
+
createRecordAlias(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
554
589
|
/**
|
|
555
590
|
* Update an existing ALIAS record for the specified domain. This endpoint allows you to modify
|
|
556
591
|
* the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
|
|
@@ -562,7 +597,7 @@ export declare class Domains {
|
|
|
562
597
|
* @param {string} params.recordId - DNS record unique ID.
|
|
563
598
|
* @param {string} params.name - Record name.
|
|
564
599
|
* @param {string} params.value - Target domain for this ALIAS record.
|
|
565
|
-
* @param {number
|
|
600
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
566
601
|
* @param {string} params.comment - A comment for this record.
|
|
567
602
|
* @throws {AppwriteException}
|
|
568
603
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -572,7 +607,7 @@ export declare class Domains {
|
|
|
572
607
|
recordId: string;
|
|
573
608
|
name: string;
|
|
574
609
|
value: string;
|
|
575
|
-
ttl: number
|
|
610
|
+
ttl: number;
|
|
576
611
|
comment?: string;
|
|
577
612
|
}): Promise<Models.DnsRecord>;
|
|
578
613
|
/**
|
|
@@ -586,13 +621,13 @@ export declare class Domains {
|
|
|
586
621
|
* @param {string} recordId - DNS record unique ID.
|
|
587
622
|
* @param {string} name - Record name.
|
|
588
623
|
* @param {string} value - Target domain for this ALIAS record.
|
|
589
|
-
* @param {number
|
|
624
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
590
625
|
* @param {string} comment - A comment for this record.
|
|
591
626
|
* @throws {AppwriteException}
|
|
592
627
|
* @returns {Promise<Models.DnsRecord>}
|
|
593
628
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
594
629
|
*/
|
|
595
|
-
updateRecordAlias(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
630
|
+
updateRecordAlias(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
596
631
|
/**
|
|
597
632
|
* Create a new CAA record for the given domain. CAA records are used to specify which
|
|
598
633
|
* Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
|
|
@@ -600,7 +635,7 @@ export declare class Domains {
|
|
|
600
635
|
* @param {string} params.domainId - Domain unique ID.
|
|
601
636
|
* @param {string} params.name - Record name.
|
|
602
637
|
* @param {string} params.value - CAA value (e.g. issuer domain).
|
|
603
|
-
* @param {number
|
|
638
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
604
639
|
* @param {string} params.comment - A comment for this record.
|
|
605
640
|
* @throws {AppwriteException}
|
|
606
641
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -609,7 +644,7 @@ export declare class Domains {
|
|
|
609
644
|
domainId: string;
|
|
610
645
|
name: string;
|
|
611
646
|
value: string;
|
|
612
|
-
ttl: number
|
|
647
|
+
ttl: number;
|
|
613
648
|
comment?: string;
|
|
614
649
|
}): Promise<Models.DnsRecord>;
|
|
615
650
|
/**
|
|
@@ -619,13 +654,13 @@ export declare class Domains {
|
|
|
619
654
|
* @param {string} domainId - Domain unique ID.
|
|
620
655
|
* @param {string} name - Record name.
|
|
621
656
|
* @param {string} value - CAA value (e.g. issuer domain).
|
|
622
|
-
* @param {number
|
|
657
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
623
658
|
* @param {string} comment - A comment for this record.
|
|
624
659
|
* @throws {AppwriteException}
|
|
625
660
|
* @returns {Promise<Models.DnsRecord>}
|
|
626
661
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
627
662
|
*/
|
|
628
|
-
createRecordCAA(domainId: string, name: string, value: string, ttl: number
|
|
663
|
+
createRecordCAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
629
664
|
/**
|
|
630
665
|
* Update an existing CAA record for the given domain. A CAA (Certification Authority Authorization)
|
|
631
666
|
* record is used to specify which certificate authorities (CAs) are authorized to issue certificates
|
|
@@ -635,7 +670,7 @@ export declare class Domains {
|
|
|
635
670
|
* @param {string} params.recordId - DNS record unique ID.
|
|
636
671
|
* @param {string} params.name - Record name.
|
|
637
672
|
* @param {string} params.value - CAA value (e.g. issuer domain).
|
|
638
|
-
* @param {number
|
|
673
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
639
674
|
* @param {string} params.comment - A comment for this record.
|
|
640
675
|
* @throws {AppwriteException}
|
|
641
676
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -645,7 +680,7 @@ export declare class Domains {
|
|
|
645
680
|
recordId: string;
|
|
646
681
|
name: string;
|
|
647
682
|
value: string;
|
|
648
|
-
ttl: number
|
|
683
|
+
ttl: number;
|
|
649
684
|
comment?: string;
|
|
650
685
|
}): Promise<Models.DnsRecord>;
|
|
651
686
|
/**
|
|
@@ -657,13 +692,13 @@ export declare class Domains {
|
|
|
657
692
|
* @param {string} recordId - DNS record unique ID.
|
|
658
693
|
* @param {string} name - Record name.
|
|
659
694
|
* @param {string} value - CAA value (e.g. issuer domain).
|
|
660
|
-
* @param {number
|
|
695
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
661
696
|
* @param {string} comment - A comment for this record.
|
|
662
697
|
* @throws {AppwriteException}
|
|
663
698
|
* @returns {Promise<Models.DnsRecord>}
|
|
664
699
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
665
700
|
*/
|
|
666
|
-
updateRecordCAA(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
701
|
+
updateRecordCAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
667
702
|
/**
|
|
668
703
|
* Create a new CNAME record for the given domain.
|
|
669
704
|
*
|
|
@@ -674,7 +709,7 @@ export declare class Domains {
|
|
|
674
709
|
* @param {string} params.domainId - Domain unique ID.
|
|
675
710
|
* @param {string} params.name - Record name (subdomain).
|
|
676
711
|
* @param {string} params.value - Canonical target for this CNAME record.
|
|
677
|
-
* @param {number
|
|
712
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
678
713
|
* @param {string} params.comment - A comment for this record.
|
|
679
714
|
* @throws {AppwriteException}
|
|
680
715
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -683,7 +718,7 @@ export declare class Domains {
|
|
|
683
718
|
domainId: string;
|
|
684
719
|
name: string;
|
|
685
720
|
value: string;
|
|
686
|
-
ttl: number
|
|
721
|
+
ttl: number;
|
|
687
722
|
comment?: string;
|
|
688
723
|
}): Promise<Models.DnsRecord>;
|
|
689
724
|
/**
|
|
@@ -696,13 +731,13 @@ export declare class Domains {
|
|
|
696
731
|
* @param {string} domainId - Domain unique ID.
|
|
697
732
|
* @param {string} name - Record name (subdomain).
|
|
698
733
|
* @param {string} value - Canonical target for this CNAME record.
|
|
699
|
-
* @param {number
|
|
734
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
700
735
|
* @param {string} comment - A comment for this record.
|
|
701
736
|
* @throws {AppwriteException}
|
|
702
737
|
* @returns {Promise<Models.DnsRecord>}
|
|
703
738
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
704
739
|
*/
|
|
705
|
-
createRecordCNAME(domainId: string, name: string, value: string, ttl: number
|
|
740
|
+
createRecordCNAME(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
706
741
|
/**
|
|
707
742
|
* Update an existing CNAME record for the given domain.
|
|
708
743
|
*
|
|
@@ -710,7 +745,7 @@ export declare class Domains {
|
|
|
710
745
|
* @param {string} params.recordId - DNS record unique ID.
|
|
711
746
|
* @param {string} params.name - Record name (subdomain).
|
|
712
747
|
* @param {string} params.value - Canonical target for this CNAME record.
|
|
713
|
-
* @param {number
|
|
748
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
714
749
|
* @param {string} params.comment - A comment for this record.
|
|
715
750
|
* @throws {AppwriteException}
|
|
716
751
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -720,7 +755,7 @@ export declare class Domains {
|
|
|
720
755
|
recordId: string;
|
|
721
756
|
name: string;
|
|
722
757
|
value: string;
|
|
723
|
-
ttl: number
|
|
758
|
+
ttl: number;
|
|
724
759
|
comment?: string;
|
|
725
760
|
}): Promise<Models.DnsRecord>;
|
|
726
761
|
/**
|
|
@@ -730,13 +765,13 @@ export declare class Domains {
|
|
|
730
765
|
* @param {string} recordId - DNS record unique ID.
|
|
731
766
|
* @param {string} name - Record name (subdomain).
|
|
732
767
|
* @param {string} value - Canonical target for this CNAME record.
|
|
733
|
-
* @param {number
|
|
768
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
734
769
|
* @param {string} comment - A comment for this record.
|
|
735
770
|
* @throws {AppwriteException}
|
|
736
771
|
* @returns {Promise<Models.DnsRecord>}
|
|
737
772
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
738
773
|
*/
|
|
739
|
-
updateRecordCNAME(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
774
|
+
updateRecordCNAME(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
740
775
|
/**
|
|
741
776
|
* Create a new HTTPS record for the given domain. This record is used to configure HTTPS
|
|
742
777
|
* settings for your domain, enabling secure communication over SSL/TLS.
|
|
@@ -744,7 +779,7 @@ export declare class Domains {
|
|
|
744
779
|
* @param {string} params.domainId - Domain unique ID.
|
|
745
780
|
* @param {string} params.name - Record name (subdomain).
|
|
746
781
|
* @param {string} params.value - Target for the HTTPS record.
|
|
747
|
-
* @param {number
|
|
782
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
748
783
|
* @param {string} params.comment - A comment for this record.
|
|
749
784
|
* @throws {AppwriteException}
|
|
750
785
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -753,7 +788,7 @@ export declare class Domains {
|
|
|
753
788
|
domainId: string;
|
|
754
789
|
name: string;
|
|
755
790
|
value: string;
|
|
756
|
-
ttl: number
|
|
791
|
+
ttl: number;
|
|
757
792
|
comment?: string;
|
|
758
793
|
}): Promise<Models.DnsRecord>;
|
|
759
794
|
/**
|
|
@@ -763,13 +798,13 @@ export declare class Domains {
|
|
|
763
798
|
* @param {string} domainId - Domain unique ID.
|
|
764
799
|
* @param {string} name - Record name (subdomain).
|
|
765
800
|
* @param {string} value - Target for the HTTPS record.
|
|
766
|
-
* @param {number
|
|
801
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
767
802
|
* @param {string} comment - A comment for this record.
|
|
768
803
|
* @throws {AppwriteException}
|
|
769
804
|
* @returns {Promise<Models.DnsRecord>}
|
|
770
805
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
771
806
|
*/
|
|
772
|
-
createRecordHTTPS(domainId: string, name: string, value: string, ttl: number
|
|
807
|
+
createRecordHTTPS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
773
808
|
/**
|
|
774
809
|
* Update an existing HTTPS record for the given domain. This endpoint allows you to modify
|
|
775
810
|
* the properties of an HTTPS record associated with your domain, including the name (subdomain),
|
|
@@ -779,7 +814,7 @@ export declare class Domains {
|
|
|
779
814
|
* @param {string} params.recordId - DNS record unique ID.
|
|
780
815
|
* @param {string} params.name - Record name (subdomain).
|
|
781
816
|
* @param {string} params.value - Target for the HTTPS record.
|
|
782
|
-
* @param {number
|
|
817
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
783
818
|
* @param {string} params.comment - A comment for this record.
|
|
784
819
|
* @throws {AppwriteException}
|
|
785
820
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -789,7 +824,7 @@ export declare class Domains {
|
|
|
789
824
|
recordId: string;
|
|
790
825
|
name: string;
|
|
791
826
|
value: string;
|
|
792
|
-
ttl: number
|
|
827
|
+
ttl: number;
|
|
793
828
|
comment?: string;
|
|
794
829
|
}): Promise<Models.DnsRecord>;
|
|
795
830
|
/**
|
|
@@ -801,13 +836,13 @@ export declare class Domains {
|
|
|
801
836
|
* @param {string} recordId - DNS record unique ID.
|
|
802
837
|
* @param {string} name - Record name (subdomain).
|
|
803
838
|
* @param {string} value - Target for the HTTPS record.
|
|
804
|
-
* @param {number
|
|
839
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
805
840
|
* @param {string} comment - A comment for this record.
|
|
806
841
|
* @throws {AppwriteException}
|
|
807
842
|
* @returns {Promise<Models.DnsRecord>}
|
|
808
843
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
809
844
|
*/
|
|
810
|
-
updateRecordHTTPS(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
845
|
+
updateRecordHTTPS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
811
846
|
/**
|
|
812
847
|
* Create a new MX record for the given domain. MX records are used to define the mail servers responsible
|
|
813
848
|
* for accepting email messages for the domain. Multiple MX records can be created with different priorities.
|
|
@@ -817,8 +852,8 @@ export declare class Domains {
|
|
|
817
852
|
* @param {string} params.domainId - Domain unique ID.
|
|
818
853
|
* @param {string} params.name - Record name (subdomain).
|
|
819
854
|
* @param {string} params.value - Mail server domain for this MX record.
|
|
820
|
-
* @param {number
|
|
821
|
-
* @param {number
|
|
855
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
856
|
+
* @param {number} params.priority - MX priority.
|
|
822
857
|
* @param {string} params.comment - A comment for this record.
|
|
823
858
|
* @throws {AppwriteException}
|
|
824
859
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -827,8 +862,8 @@ export declare class Domains {
|
|
|
827
862
|
domainId: string;
|
|
828
863
|
name: string;
|
|
829
864
|
value: string;
|
|
830
|
-
ttl: number
|
|
831
|
-
priority: number
|
|
865
|
+
ttl: number;
|
|
866
|
+
priority: number;
|
|
832
867
|
comment?: string;
|
|
833
868
|
}): Promise<Models.DnsRecord>;
|
|
834
869
|
/**
|
|
@@ -840,14 +875,14 @@ export declare class Domains {
|
|
|
840
875
|
* @param {string} domainId - Domain unique ID.
|
|
841
876
|
* @param {string} name - Record name (subdomain).
|
|
842
877
|
* @param {string} value - Mail server domain for this MX record.
|
|
843
|
-
* @param {number
|
|
844
|
-
* @param {number
|
|
878
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
879
|
+
* @param {number} priority - MX priority.
|
|
845
880
|
* @param {string} comment - A comment for this record.
|
|
846
881
|
* @throws {AppwriteException}
|
|
847
882
|
* @returns {Promise<Models.DnsRecord>}
|
|
848
883
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
849
884
|
*/
|
|
850
|
-
createRecordMX(domainId: string, name: string, value: string, ttl: number
|
|
885
|
+
createRecordMX(domainId: string, name: string, value: string, ttl: number, priority: number, comment?: string): Promise<Models.DnsRecord>;
|
|
851
886
|
/**
|
|
852
887
|
* Update an existing MX record for the given domain.
|
|
853
888
|
*
|
|
@@ -855,8 +890,8 @@ export declare class Domains {
|
|
|
855
890
|
* @param {string} params.recordId - DNS record unique ID.
|
|
856
891
|
* @param {string} params.name - Record name (subdomain).
|
|
857
892
|
* @param {string} params.value - Mail server domain for this MX record.
|
|
858
|
-
* @param {number
|
|
859
|
-
* @param {number
|
|
893
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
894
|
+
* @param {number} params.priority - MX priority.
|
|
860
895
|
* @param {string} params.comment - A comment for this record.
|
|
861
896
|
* @throws {AppwriteException}
|
|
862
897
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -866,8 +901,8 @@ export declare class Domains {
|
|
|
866
901
|
recordId: string;
|
|
867
902
|
name: string;
|
|
868
903
|
value: string;
|
|
869
|
-
ttl: number
|
|
870
|
-
priority: number
|
|
904
|
+
ttl: number;
|
|
905
|
+
priority: number;
|
|
871
906
|
comment?: string;
|
|
872
907
|
}): Promise<Models.DnsRecord>;
|
|
873
908
|
/**
|
|
@@ -877,14 +912,14 @@ export declare class Domains {
|
|
|
877
912
|
* @param {string} recordId - DNS record unique ID.
|
|
878
913
|
* @param {string} name - Record name (subdomain).
|
|
879
914
|
* @param {string} value - Mail server domain for this MX record.
|
|
880
|
-
* @param {number
|
|
881
|
-
* @param {number
|
|
915
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
916
|
+
* @param {number} priority - MX priority.
|
|
882
917
|
* @param {string} comment - A comment for this record.
|
|
883
918
|
* @throws {AppwriteException}
|
|
884
919
|
* @returns {Promise<Models.DnsRecord>}
|
|
885
920
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
886
921
|
*/
|
|
887
|
-
updateRecordMX(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
922
|
+
updateRecordMX(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, comment?: string): Promise<Models.DnsRecord>;
|
|
888
923
|
/**
|
|
889
924
|
* Create a new NS record for the given domain. NS records specify the nameservers that are used
|
|
890
925
|
* to resolve the domain name to IP addresses. Each domain can have multiple NS records.
|
|
@@ -892,7 +927,7 @@ export declare class Domains {
|
|
|
892
927
|
* @param {string} params.domainId - Domain unique ID.
|
|
893
928
|
* @param {string} params.name - Record name (subdomain).
|
|
894
929
|
* @param {string} params.value - Nameserver target for this NS record.
|
|
895
|
-
* @param {number
|
|
930
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
896
931
|
* @param {string} params.comment - A comment for this record.
|
|
897
932
|
* @throws {AppwriteException}
|
|
898
933
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -901,7 +936,7 @@ export declare class Domains {
|
|
|
901
936
|
domainId: string;
|
|
902
937
|
name: string;
|
|
903
938
|
value: string;
|
|
904
|
-
ttl: number
|
|
939
|
+
ttl: number;
|
|
905
940
|
comment?: string;
|
|
906
941
|
}): Promise<Models.DnsRecord>;
|
|
907
942
|
/**
|
|
@@ -911,13 +946,13 @@ export declare class Domains {
|
|
|
911
946
|
* @param {string} domainId - Domain unique ID.
|
|
912
947
|
* @param {string} name - Record name (subdomain).
|
|
913
948
|
* @param {string} value - Nameserver target for this NS record.
|
|
914
|
-
* @param {number
|
|
949
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
915
950
|
* @param {string} comment - A comment for this record.
|
|
916
951
|
* @throws {AppwriteException}
|
|
917
952
|
* @returns {Promise<Models.DnsRecord>}
|
|
918
953
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
919
954
|
*/
|
|
920
|
-
createRecordNS(domainId: string, name: string, value: string, ttl: number
|
|
955
|
+
createRecordNS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
921
956
|
/**
|
|
922
957
|
* Update an existing NS record for the given domain. This endpoint allows you to modify
|
|
923
958
|
* the properties of an NS (nameserver) record associated with your domain. You can update
|
|
@@ -928,7 +963,7 @@ export declare class Domains {
|
|
|
928
963
|
* @param {string} params.recordId - DNS record unique ID.
|
|
929
964
|
* @param {string} params.name - Record name (subdomain).
|
|
930
965
|
* @param {string} params.value - Nameserver target for this NS record.
|
|
931
|
-
* @param {number
|
|
966
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
932
967
|
* @param {string} params.comment - A comment for this record.
|
|
933
968
|
* @throws {AppwriteException}
|
|
934
969
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -938,7 +973,7 @@ export declare class Domains {
|
|
|
938
973
|
recordId: string;
|
|
939
974
|
name: string;
|
|
940
975
|
value: string;
|
|
941
|
-
ttl: number
|
|
976
|
+
ttl: number;
|
|
942
977
|
comment?: string;
|
|
943
978
|
}): Promise<Models.DnsRecord>;
|
|
944
979
|
/**
|
|
@@ -951,13 +986,13 @@ export declare class Domains {
|
|
|
951
986
|
* @param {string} recordId - DNS record unique ID.
|
|
952
987
|
* @param {string} name - Record name (subdomain).
|
|
953
988
|
* @param {string} value - Nameserver target for this NS record.
|
|
954
|
-
* @param {number
|
|
989
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
955
990
|
* @param {string} comment - A comment for this record.
|
|
956
991
|
* @throws {AppwriteException}
|
|
957
992
|
* @returns {Promise<Models.DnsRecord>}
|
|
958
993
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
959
994
|
*/
|
|
960
|
-
updateRecordNS(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
995
|
+
updateRecordNS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
961
996
|
/**
|
|
962
997
|
* Create a new SRV record for the given domain. SRV records are used to define the location
|
|
963
998
|
* of servers for specific services. For example, they can be used to specify which server
|
|
@@ -966,10 +1001,10 @@ export declare class Domains {
|
|
|
966
1001
|
* @param {string} params.domainId - Domain unique ID.
|
|
967
1002
|
* @param {string} params.name - Record name (service name).
|
|
968
1003
|
* @param {string} params.value - Target hostname for this SRV record.
|
|
969
|
-
* @param {number
|
|
970
|
-
* @param {number
|
|
971
|
-
* @param {number
|
|
972
|
-
* @param {number
|
|
1004
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1005
|
+
* @param {number} params.priority - Record priority.
|
|
1006
|
+
* @param {number} params.weight - Record weight.
|
|
1007
|
+
* @param {number} params.port - Port number for the service.
|
|
973
1008
|
* @param {string} params.comment - A comment for this record.
|
|
974
1009
|
* @throws {AppwriteException}
|
|
975
1010
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -978,10 +1013,10 @@ export declare class Domains {
|
|
|
978
1013
|
domainId: string;
|
|
979
1014
|
name: string;
|
|
980
1015
|
value: string;
|
|
981
|
-
ttl: number
|
|
982
|
-
priority: number
|
|
983
|
-
weight: number
|
|
984
|
-
port: number
|
|
1016
|
+
ttl: number;
|
|
1017
|
+
priority: number;
|
|
1018
|
+
weight: number;
|
|
1019
|
+
port: number;
|
|
985
1020
|
comment?: string;
|
|
986
1021
|
}): Promise<Models.DnsRecord>;
|
|
987
1022
|
/**
|
|
@@ -992,16 +1027,16 @@ export declare class Domains {
|
|
|
992
1027
|
* @param {string} domainId - Domain unique ID.
|
|
993
1028
|
* @param {string} name - Record name (service name).
|
|
994
1029
|
* @param {string} value - Target hostname for this SRV record.
|
|
995
|
-
* @param {number
|
|
996
|
-
* @param {number
|
|
997
|
-
* @param {number
|
|
998
|
-
* @param {number
|
|
1030
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1031
|
+
* @param {number} priority - Record priority.
|
|
1032
|
+
* @param {number} weight - Record weight.
|
|
1033
|
+
* @param {number} port - Port number for the service.
|
|
999
1034
|
* @param {string} comment - A comment for this record.
|
|
1000
1035
|
* @throws {AppwriteException}
|
|
1001
1036
|
* @returns {Promise<Models.DnsRecord>}
|
|
1002
1037
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1003
1038
|
*/
|
|
1004
|
-
createRecordSRV(domainId: string, name: string, value: string, ttl: number
|
|
1039
|
+
createRecordSRV(domainId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1005
1040
|
/**
|
|
1006
1041
|
* Update an existing SRV record for the given domain.
|
|
1007
1042
|
*
|
|
@@ -1022,10 +1057,10 @@ export declare class Domains {
|
|
|
1022
1057
|
* @param {string} params.recordId - DNS record unique ID.
|
|
1023
1058
|
* @param {string} params.name - Record name (service name).
|
|
1024
1059
|
* @param {string} params.value - Target hostname for this SRV record.
|
|
1025
|
-
* @param {number
|
|
1026
|
-
* @param {number
|
|
1027
|
-
* @param {number
|
|
1028
|
-
* @param {number
|
|
1060
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1061
|
+
* @param {number} params.priority - Record priority.
|
|
1062
|
+
* @param {number} params.weight - Record weight.
|
|
1063
|
+
* @param {number} params.port - Port number for the service.
|
|
1029
1064
|
* @param {string} params.comment - A comment for this record.
|
|
1030
1065
|
* @throws {AppwriteException}
|
|
1031
1066
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -1035,10 +1070,10 @@ export declare class Domains {
|
|
|
1035
1070
|
recordId: string;
|
|
1036
1071
|
name: string;
|
|
1037
1072
|
value: string;
|
|
1038
|
-
ttl: number
|
|
1039
|
-
priority: number
|
|
1040
|
-
weight: number
|
|
1041
|
-
port: number
|
|
1073
|
+
ttl: number;
|
|
1074
|
+
priority: number;
|
|
1075
|
+
weight: number;
|
|
1076
|
+
port: number;
|
|
1042
1077
|
comment?: string;
|
|
1043
1078
|
}): Promise<Models.DnsRecord>;
|
|
1044
1079
|
/**
|
|
@@ -1061,16 +1096,16 @@ export declare class Domains {
|
|
|
1061
1096
|
* @param {string} recordId - DNS record unique ID.
|
|
1062
1097
|
* @param {string} name - Record name (service name).
|
|
1063
1098
|
* @param {string} value - Target hostname for this SRV record.
|
|
1064
|
-
* @param {number
|
|
1065
|
-
* @param {number
|
|
1066
|
-
* @param {number
|
|
1067
|
-
* @param {number
|
|
1099
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1100
|
+
* @param {number} priority - Record priority.
|
|
1101
|
+
* @param {number} weight - Record weight.
|
|
1102
|
+
* @param {number} port - Port number for the service.
|
|
1068
1103
|
* @param {string} comment - A comment for this record.
|
|
1069
1104
|
* @throws {AppwriteException}
|
|
1070
1105
|
* @returns {Promise<Models.DnsRecord>}
|
|
1071
1106
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1072
1107
|
*/
|
|
1073
|
-
updateRecordSRV(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
1108
|
+
updateRecordSRV(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1074
1109
|
/**
|
|
1075
1110
|
* Create a new TXT record for the given domain. TXT records can be used
|
|
1076
1111
|
* to provide additional information about your domain, such as domain
|
|
@@ -1078,7 +1113,7 @@ export declare class Domains {
|
|
|
1078
1113
|
*
|
|
1079
1114
|
* @param {string} params.domainId - Domain unique ID.
|
|
1080
1115
|
* @param {string} params.name - Record name (subdomain) for the TXT record.
|
|
1081
|
-
* @param {number
|
|
1116
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1082
1117
|
* @param {string} params.value - TXT record value.
|
|
1083
1118
|
* @param {string} params.comment - A comment for this record.
|
|
1084
1119
|
* @throws {AppwriteException}
|
|
@@ -1087,7 +1122,7 @@ export declare class Domains {
|
|
|
1087
1122
|
createRecordTXT(params: {
|
|
1088
1123
|
domainId: string;
|
|
1089
1124
|
name: string;
|
|
1090
|
-
ttl: number
|
|
1125
|
+
ttl: number;
|
|
1091
1126
|
value?: string;
|
|
1092
1127
|
comment?: string;
|
|
1093
1128
|
}): Promise<Models.DnsRecord>;
|
|
@@ -1098,14 +1133,14 @@ export declare class Domains {
|
|
|
1098
1133
|
*
|
|
1099
1134
|
* @param {string} domainId - Domain unique ID.
|
|
1100
1135
|
* @param {string} name - Record name (subdomain) for the TXT record.
|
|
1101
|
-
* @param {number
|
|
1136
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1102
1137
|
* @param {string} value - TXT record value.
|
|
1103
1138
|
* @param {string} comment - A comment for this record.
|
|
1104
1139
|
* @throws {AppwriteException}
|
|
1105
1140
|
* @returns {Promise<Models.DnsRecord>}
|
|
1106
1141
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1107
1142
|
*/
|
|
1108
|
-
createRecordTXT(domainId: string, name: string, ttl: number
|
|
1143
|
+
createRecordTXT(domainId: string, name: string, ttl: number, value?: string, comment?: string): Promise<Models.DnsRecord>;
|
|
1109
1144
|
/**
|
|
1110
1145
|
* Update an existing TXT record for the given domain.
|
|
1111
1146
|
*
|
|
@@ -1116,7 +1151,7 @@ export declare class Domains {
|
|
|
1116
1151
|
* @param {string} params.recordId - DNS record unique ID.
|
|
1117
1152
|
* @param {string} params.name - Record name (subdomain) for the TXT record.
|
|
1118
1153
|
* @param {string} params.value - TXT record value.
|
|
1119
|
-
* @param {number
|
|
1154
|
+
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1120
1155
|
* @param {string} params.comment - A comment for this record.
|
|
1121
1156
|
* @throws {AppwriteException}
|
|
1122
1157
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -1126,7 +1161,7 @@ export declare class Domains {
|
|
|
1126
1161
|
recordId: string;
|
|
1127
1162
|
name: string;
|
|
1128
1163
|
value: string;
|
|
1129
|
-
ttl: number
|
|
1164
|
+
ttl: number;
|
|
1130
1165
|
comment?: string;
|
|
1131
1166
|
}): Promise<Models.DnsRecord>;
|
|
1132
1167
|
/**
|
|
@@ -1139,13 +1174,13 @@ export declare class Domains {
|
|
|
1139
1174
|
* @param {string} recordId - DNS record unique ID.
|
|
1140
1175
|
* @param {string} name - Record name (subdomain) for the TXT record.
|
|
1141
1176
|
* @param {string} value - TXT record value.
|
|
1142
|
-
* @param {number
|
|
1177
|
+
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1143
1178
|
* @param {string} comment - A comment for this record.
|
|
1144
1179
|
* @throws {AppwriteException}
|
|
1145
1180
|
* @returns {Promise<Models.DnsRecord>}
|
|
1146
1181
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1147
1182
|
*/
|
|
1148
|
-
updateRecordTXT(domainId: string, recordId: string, name: string, value: string, ttl: number
|
|
1183
|
+
updateRecordTXT(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1149
1184
|
/**
|
|
1150
1185
|
* Get a single DNS record for a given domain by record ID.
|
|
1151
1186
|
*
|