@appwrite.io/console 2.1.0 → 2.1.1
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 +2 -2
- package/dist/cjs/sdk.js +55 -16
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +51 -16
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3812 -16
- package/docs/examples/projects/update-labels.md +14 -0
- package/package.json +7 -1
- package/rollup.config.js +40 -24
- package/src/client.ts +20 -10
- package/src/models.ts +432 -424
- package/src/query.ts +14 -11
- 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 +119 -119
- package/src/services/domains.ts +204 -204
- package/src/services/functions.ts +30 -30
- package/src/services/health.ts +146 -146
- package/src/services/messaging.ts +54 -54
- package/src/services/migrations.ts +36 -36
- package/src/services/organizations.ts +42 -42
- package/src/services/projects.ts +146 -83
- package/src/services/sites.ts +30 -30
- package/src/services/storage.ts +49 -49
- package/src/services/tables-db.ts +119 -119
- package/src/services/users.ts +39 -39
- package/types/client.d.ts +8 -1
- package/types/models.d.ts +432 -424
- package/types/query.d.ts +8 -8
- 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 +70 -70
- package/types/services/domains.d.ts +104 -104
- package/types/services/functions.d.ts +15 -15
- package/types/services/health.d.ts +72 -72
- package/types/services/messaging.d.ts +24 -24
- package/types/services/migrations.d.ts +16 -16
- package/types/services/organizations.d.ts +22 -22
- package/types/services/projects.d.ts +60 -38
- package/types/services/sites.d.ts +15 -15
- package/types/services/storage.d.ts +34 -34
- package/types/services/tables-db.d.ts +70 -70
- package/types/services/users.d.ts +24 -24
|
@@ -381,7 +381,7 @@ export declare class Domains {
|
|
|
381
381
|
* @param {string} params.domainId - Domain unique ID.
|
|
382
382
|
* @param {string} params.name - Record name (subdomain).
|
|
383
383
|
* @param {string} params.value - IPv4 address for this A record.
|
|
384
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
384
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
385
385
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
386
386
|
* @throws {AppwriteException}
|
|
387
387
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -390,7 +390,7 @@ export declare class Domains {
|
|
|
390
390
|
domainId: string;
|
|
391
391
|
name: string;
|
|
392
392
|
value: string;
|
|
393
|
-
ttl: number;
|
|
393
|
+
ttl: number | bigint;
|
|
394
394
|
comment?: string;
|
|
395
395
|
}): Promise<Models.DnsRecord>;
|
|
396
396
|
/**
|
|
@@ -400,13 +400,13 @@ export declare class Domains {
|
|
|
400
400
|
* @param {string} domainId - Domain unique ID.
|
|
401
401
|
* @param {string} name - Record name (subdomain).
|
|
402
402
|
* @param {string} value - IPv4 address for this A record.
|
|
403
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
403
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
404
404
|
* @param {string} comment - A comment explaining what this record is for.
|
|
405
405
|
* @throws {AppwriteException}
|
|
406
406
|
* @returns {Promise<Models.DnsRecord>}
|
|
407
407
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
408
408
|
*/
|
|
409
|
-
createRecordA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
409
|
+
createRecordA(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
410
410
|
/**
|
|
411
411
|
* Update an existing A record for the given domain. This endpoint allows you to modify
|
|
412
412
|
* the properties of an A record including its name (subdomain), IPv4 address, TTL,
|
|
@@ -416,7 +416,7 @@ export declare class Domains {
|
|
|
416
416
|
* @param {string} params.recordId - DNS record unique ID.
|
|
417
417
|
* @param {string} params.name - Record name (subdomain).
|
|
418
418
|
* @param {string} params.value - IPv4 address for this A record.
|
|
419
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
419
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
420
420
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
421
421
|
* @throws {AppwriteException}
|
|
422
422
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -426,7 +426,7 @@ export declare class Domains {
|
|
|
426
426
|
recordId: string;
|
|
427
427
|
name: string;
|
|
428
428
|
value: string;
|
|
429
|
-
ttl: number;
|
|
429
|
+
ttl: number | bigint;
|
|
430
430
|
comment?: string;
|
|
431
431
|
}): Promise<Models.DnsRecord>;
|
|
432
432
|
/**
|
|
@@ -438,13 +438,13 @@ export declare class Domains {
|
|
|
438
438
|
* @param {string} recordId - DNS record unique ID.
|
|
439
439
|
* @param {string} name - Record name (subdomain).
|
|
440
440
|
* @param {string} value - IPv4 address for this A record.
|
|
441
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
441
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
442
442
|
* @param {string} comment - A comment explaining what this record is for.
|
|
443
443
|
* @throws {AppwriteException}
|
|
444
444
|
* @returns {Promise<Models.DnsRecord>}
|
|
445
445
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
446
446
|
*/
|
|
447
|
-
updateRecordA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
447
|
+
updateRecordA(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
448
448
|
/**
|
|
449
449
|
* Create a new AAAA record for the given domain. This endpoint allows you to add a new IPv6 DNS record
|
|
450
450
|
* to your domain. The record will be used to point a hostname to an IPv6 address.
|
|
@@ -452,7 +452,7 @@ export declare class Domains {
|
|
|
452
452
|
* @param {string} params.domainId - Domain unique ID.
|
|
453
453
|
* @param {string} params.name - Record name (subdomain).
|
|
454
454
|
* @param {string} params.value - IPv6 address for this AAAA record.
|
|
455
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
455
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
456
456
|
* @param {string} params.comment - A comment explaining what this record is for.
|
|
457
457
|
* @throws {AppwriteException}
|
|
458
458
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -461,7 +461,7 @@ export declare class Domains {
|
|
|
461
461
|
domainId: string;
|
|
462
462
|
name: string;
|
|
463
463
|
value: string;
|
|
464
|
-
ttl: number;
|
|
464
|
+
ttl: number | bigint;
|
|
465
465
|
comment?: string;
|
|
466
466
|
}): Promise<Models.DnsRecord>;
|
|
467
467
|
/**
|
|
@@ -471,13 +471,13 @@ export declare class Domains {
|
|
|
471
471
|
* @param {string} domainId - Domain unique ID.
|
|
472
472
|
* @param {string} name - Record name (subdomain).
|
|
473
473
|
* @param {string} value - IPv6 address for this AAAA record.
|
|
474
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
474
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
475
475
|
* @param {string} comment - A comment explaining what this record is for.
|
|
476
476
|
* @throws {AppwriteException}
|
|
477
477
|
* @returns {Promise<Models.DnsRecord>}
|
|
478
478
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
479
479
|
*/
|
|
480
|
-
createRecordAAAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
480
|
+
createRecordAAAA(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
481
481
|
/**
|
|
482
482
|
* Update an existing AAAA record for the given domain. This endpoint allows you to modify
|
|
483
483
|
* the properties of an existing AAAA record, including its name (subdomain), IPv6 address,
|
|
@@ -487,7 +487,7 @@ export declare class Domains {
|
|
|
487
487
|
* @param {string} params.recordId - DNS record unique ID.
|
|
488
488
|
* @param {string} params.name - Record name (subdomain).
|
|
489
489
|
* @param {string} params.value - IPv6 address for this AAAA record.
|
|
490
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
490
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
491
491
|
* @param {string} params.comment - A comment for this record.
|
|
492
492
|
* @throws {AppwriteException}
|
|
493
493
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -497,7 +497,7 @@ export declare class Domains {
|
|
|
497
497
|
recordId: string;
|
|
498
498
|
name: string;
|
|
499
499
|
value: string;
|
|
500
|
-
ttl: number;
|
|
500
|
+
ttl: number | bigint;
|
|
501
501
|
comment?: string;
|
|
502
502
|
}): Promise<Models.DnsRecord>;
|
|
503
503
|
/**
|
|
@@ -509,13 +509,13 @@ export declare class Domains {
|
|
|
509
509
|
* @param {string} recordId - DNS record unique ID.
|
|
510
510
|
* @param {string} name - Record name (subdomain).
|
|
511
511
|
* @param {string} value - IPv6 address for this AAAA record.
|
|
512
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
512
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
513
513
|
* @param {string} comment - A comment for this record.
|
|
514
514
|
* @throws {AppwriteException}
|
|
515
515
|
* @returns {Promise<Models.DnsRecord>}
|
|
516
516
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
517
517
|
*/
|
|
518
|
-
updateRecordAAAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
518
|
+
updateRecordAAAA(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
519
519
|
/**
|
|
520
520
|
* Create a new ALIAS record for the given domain. This record type can be used to point your domain
|
|
521
521
|
* to another domain name that will serve as an alias. This is particularly useful when you want to
|
|
@@ -524,7 +524,7 @@ export declare class Domains {
|
|
|
524
524
|
* @param {string} params.domainId - Domain unique ID.
|
|
525
525
|
* @param {string} params.name - Record name.
|
|
526
526
|
* @param {string} params.value - Target domain for this ALIAS record.
|
|
527
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
527
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
528
528
|
* @param {string} params.comment - A comment for this record.
|
|
529
529
|
* @throws {AppwriteException}
|
|
530
530
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -533,7 +533,7 @@ export declare class Domains {
|
|
|
533
533
|
domainId: string;
|
|
534
534
|
name: string;
|
|
535
535
|
value: string;
|
|
536
|
-
ttl: number;
|
|
536
|
+
ttl: number | bigint;
|
|
537
537
|
comment?: string;
|
|
538
538
|
}): Promise<Models.DnsRecord>;
|
|
539
539
|
/**
|
|
@@ -544,13 +544,13 @@ export declare class Domains {
|
|
|
544
544
|
* @param {string} domainId - Domain unique ID.
|
|
545
545
|
* @param {string} name - Record name.
|
|
546
546
|
* @param {string} value - Target domain for this ALIAS record.
|
|
547
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
547
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
548
548
|
* @param {string} comment - A comment for this record.
|
|
549
549
|
* @throws {AppwriteException}
|
|
550
550
|
* @returns {Promise<Models.DnsRecord>}
|
|
551
551
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
552
552
|
*/
|
|
553
|
-
createRecordAlias(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
553
|
+
createRecordAlias(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
554
554
|
/**
|
|
555
555
|
* Update an existing ALIAS record for the specified domain. This endpoint allows you to modify
|
|
556
556
|
* the properties of an existing ALIAS record including its name, target domain, TTL, and comment.
|
|
@@ -562,7 +562,7 @@ export declare class Domains {
|
|
|
562
562
|
* @param {string} params.recordId - DNS record unique ID.
|
|
563
563
|
* @param {string} params.name - Record name.
|
|
564
564
|
* @param {string} params.value - Target domain for this ALIAS record.
|
|
565
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
565
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
566
566
|
* @param {string} params.comment - A comment for this record.
|
|
567
567
|
* @throws {AppwriteException}
|
|
568
568
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -572,7 +572,7 @@ export declare class Domains {
|
|
|
572
572
|
recordId: string;
|
|
573
573
|
name: string;
|
|
574
574
|
value: string;
|
|
575
|
-
ttl: number;
|
|
575
|
+
ttl: number | bigint;
|
|
576
576
|
comment?: string;
|
|
577
577
|
}): Promise<Models.DnsRecord>;
|
|
578
578
|
/**
|
|
@@ -586,13 +586,13 @@ export declare class Domains {
|
|
|
586
586
|
* @param {string} recordId - DNS record unique ID.
|
|
587
587
|
* @param {string} name - Record name.
|
|
588
588
|
* @param {string} value - Target domain for this ALIAS record.
|
|
589
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
589
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
590
590
|
* @param {string} comment - A comment for this record.
|
|
591
591
|
* @throws {AppwriteException}
|
|
592
592
|
* @returns {Promise<Models.DnsRecord>}
|
|
593
593
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
594
594
|
*/
|
|
595
|
-
updateRecordAlias(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
595
|
+
updateRecordAlias(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
596
596
|
/**
|
|
597
597
|
* Create a new CAA record for the given domain. CAA records are used to specify which
|
|
598
598
|
* Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain.
|
|
@@ -600,7 +600,7 @@ export declare class Domains {
|
|
|
600
600
|
* @param {string} params.domainId - Domain unique ID.
|
|
601
601
|
* @param {string} params.name - Record name.
|
|
602
602
|
* @param {string} params.value - CAA value (e.g. issuer domain).
|
|
603
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
603
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
604
604
|
* @param {string} params.comment - A comment for this record.
|
|
605
605
|
* @throws {AppwriteException}
|
|
606
606
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -609,7 +609,7 @@ export declare class Domains {
|
|
|
609
609
|
domainId: string;
|
|
610
610
|
name: string;
|
|
611
611
|
value: string;
|
|
612
|
-
ttl: number;
|
|
612
|
+
ttl: number | bigint;
|
|
613
613
|
comment?: string;
|
|
614
614
|
}): Promise<Models.DnsRecord>;
|
|
615
615
|
/**
|
|
@@ -619,13 +619,13 @@ export declare class Domains {
|
|
|
619
619
|
* @param {string} domainId - Domain unique ID.
|
|
620
620
|
* @param {string} name - Record name.
|
|
621
621
|
* @param {string} value - CAA value (e.g. issuer domain).
|
|
622
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
622
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
623
623
|
* @param {string} comment - A comment for this record.
|
|
624
624
|
* @throws {AppwriteException}
|
|
625
625
|
* @returns {Promise<Models.DnsRecord>}
|
|
626
626
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
627
627
|
*/
|
|
628
|
-
createRecordCAA(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
628
|
+
createRecordCAA(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
629
629
|
/**
|
|
630
630
|
* Update an existing CAA record for the given domain. A CAA (Certification Authority Authorization)
|
|
631
631
|
* record is used to specify which certificate authorities (CAs) are authorized to issue certificates
|
|
@@ -635,7 +635,7 @@ export declare class Domains {
|
|
|
635
635
|
* @param {string} params.recordId - DNS record unique ID.
|
|
636
636
|
* @param {string} params.name - Record name.
|
|
637
637
|
* @param {string} params.value - CAA value (e.g. issuer domain).
|
|
638
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
638
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
639
639
|
* @param {string} params.comment - A comment for this record.
|
|
640
640
|
* @throws {AppwriteException}
|
|
641
641
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -645,7 +645,7 @@ export declare class Domains {
|
|
|
645
645
|
recordId: string;
|
|
646
646
|
name: string;
|
|
647
647
|
value: string;
|
|
648
|
-
ttl: number;
|
|
648
|
+
ttl: number | bigint;
|
|
649
649
|
comment?: string;
|
|
650
650
|
}): Promise<Models.DnsRecord>;
|
|
651
651
|
/**
|
|
@@ -657,13 +657,13 @@ export declare class Domains {
|
|
|
657
657
|
* @param {string} recordId - DNS record unique ID.
|
|
658
658
|
* @param {string} name - Record name.
|
|
659
659
|
* @param {string} value - CAA value (e.g. issuer domain).
|
|
660
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
660
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
661
661
|
* @param {string} comment - A comment for this record.
|
|
662
662
|
* @throws {AppwriteException}
|
|
663
663
|
* @returns {Promise<Models.DnsRecord>}
|
|
664
664
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
665
665
|
*/
|
|
666
|
-
updateRecordCAA(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
666
|
+
updateRecordCAA(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
667
667
|
/**
|
|
668
668
|
* Create a new CNAME record for the given domain.
|
|
669
669
|
*
|
|
@@ -674,7 +674,7 @@ export declare class Domains {
|
|
|
674
674
|
* @param {string} params.domainId - Domain unique ID.
|
|
675
675
|
* @param {string} params.name - Record name (subdomain).
|
|
676
676
|
* @param {string} params.value - Canonical target for this CNAME record.
|
|
677
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
677
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
678
678
|
* @param {string} params.comment - A comment for this record.
|
|
679
679
|
* @throws {AppwriteException}
|
|
680
680
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -683,7 +683,7 @@ export declare class Domains {
|
|
|
683
683
|
domainId: string;
|
|
684
684
|
name: string;
|
|
685
685
|
value: string;
|
|
686
|
-
ttl: number;
|
|
686
|
+
ttl: number | bigint;
|
|
687
687
|
comment?: string;
|
|
688
688
|
}): Promise<Models.DnsRecord>;
|
|
689
689
|
/**
|
|
@@ -696,13 +696,13 @@ export declare class Domains {
|
|
|
696
696
|
* @param {string} domainId - Domain unique ID.
|
|
697
697
|
* @param {string} name - Record name (subdomain).
|
|
698
698
|
* @param {string} value - Canonical target for this CNAME record.
|
|
699
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
699
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
700
700
|
* @param {string} comment - A comment for this record.
|
|
701
701
|
* @throws {AppwriteException}
|
|
702
702
|
* @returns {Promise<Models.DnsRecord>}
|
|
703
703
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
704
704
|
*/
|
|
705
|
-
createRecordCNAME(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
705
|
+
createRecordCNAME(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
706
706
|
/**
|
|
707
707
|
* Update an existing CNAME record for the given domain.
|
|
708
708
|
*
|
|
@@ -710,7 +710,7 @@ export declare class Domains {
|
|
|
710
710
|
* @param {string} params.recordId - DNS record unique ID.
|
|
711
711
|
* @param {string} params.name - Record name (subdomain).
|
|
712
712
|
* @param {string} params.value - Canonical target for this CNAME record.
|
|
713
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
713
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
714
714
|
* @param {string} params.comment - A comment for this record.
|
|
715
715
|
* @throws {AppwriteException}
|
|
716
716
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -720,7 +720,7 @@ export declare class Domains {
|
|
|
720
720
|
recordId: string;
|
|
721
721
|
name: string;
|
|
722
722
|
value: string;
|
|
723
|
-
ttl: number;
|
|
723
|
+
ttl: number | bigint;
|
|
724
724
|
comment?: string;
|
|
725
725
|
}): Promise<Models.DnsRecord>;
|
|
726
726
|
/**
|
|
@@ -730,13 +730,13 @@ export declare class Domains {
|
|
|
730
730
|
* @param {string} recordId - DNS record unique ID.
|
|
731
731
|
* @param {string} name - Record name (subdomain).
|
|
732
732
|
* @param {string} value - Canonical target for this CNAME record.
|
|
733
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
733
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
734
734
|
* @param {string} comment - A comment for this record.
|
|
735
735
|
* @throws {AppwriteException}
|
|
736
736
|
* @returns {Promise<Models.DnsRecord>}
|
|
737
737
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
738
738
|
*/
|
|
739
|
-
updateRecordCNAME(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
739
|
+
updateRecordCNAME(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
740
740
|
/**
|
|
741
741
|
* Create a new HTTPS record for the given domain. This record is used to configure HTTPS
|
|
742
742
|
* settings for your domain, enabling secure communication over SSL/TLS.
|
|
@@ -744,7 +744,7 @@ export declare class Domains {
|
|
|
744
744
|
* @param {string} params.domainId - Domain unique ID.
|
|
745
745
|
* @param {string} params.name - Record name (subdomain).
|
|
746
746
|
* @param {string} params.value - Target for the HTTPS record.
|
|
747
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
747
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
748
748
|
* @param {string} params.comment - A comment for this record.
|
|
749
749
|
* @throws {AppwriteException}
|
|
750
750
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -753,7 +753,7 @@ export declare class Domains {
|
|
|
753
753
|
domainId: string;
|
|
754
754
|
name: string;
|
|
755
755
|
value: string;
|
|
756
|
-
ttl: number;
|
|
756
|
+
ttl: number | bigint;
|
|
757
757
|
comment?: string;
|
|
758
758
|
}): Promise<Models.DnsRecord>;
|
|
759
759
|
/**
|
|
@@ -763,13 +763,13 @@ export declare class Domains {
|
|
|
763
763
|
* @param {string} domainId - Domain unique ID.
|
|
764
764
|
* @param {string} name - Record name (subdomain).
|
|
765
765
|
* @param {string} value - Target for the HTTPS record.
|
|
766
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
766
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
767
767
|
* @param {string} comment - A comment for this record.
|
|
768
768
|
* @throws {AppwriteException}
|
|
769
769
|
* @returns {Promise<Models.DnsRecord>}
|
|
770
770
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
771
771
|
*/
|
|
772
|
-
createRecordHTTPS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
772
|
+
createRecordHTTPS(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
773
773
|
/**
|
|
774
774
|
* Update an existing HTTPS record for the given domain. This endpoint allows you to modify
|
|
775
775
|
* the properties of an HTTPS record associated with your domain, including the name (subdomain),
|
|
@@ -779,7 +779,7 @@ export declare class Domains {
|
|
|
779
779
|
* @param {string} params.recordId - DNS record unique ID.
|
|
780
780
|
* @param {string} params.name - Record name (subdomain).
|
|
781
781
|
* @param {string} params.value - Target for the HTTPS record.
|
|
782
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
782
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
783
783
|
* @param {string} params.comment - A comment for this record.
|
|
784
784
|
* @throws {AppwriteException}
|
|
785
785
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -789,7 +789,7 @@ export declare class Domains {
|
|
|
789
789
|
recordId: string;
|
|
790
790
|
name: string;
|
|
791
791
|
value: string;
|
|
792
|
-
ttl: number;
|
|
792
|
+
ttl: number | bigint;
|
|
793
793
|
comment?: string;
|
|
794
794
|
}): Promise<Models.DnsRecord>;
|
|
795
795
|
/**
|
|
@@ -801,13 +801,13 @@ export declare class Domains {
|
|
|
801
801
|
* @param {string} recordId - DNS record unique ID.
|
|
802
802
|
* @param {string} name - Record name (subdomain).
|
|
803
803
|
* @param {string} value - Target for the HTTPS record.
|
|
804
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
804
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
805
805
|
* @param {string} comment - A comment for this record.
|
|
806
806
|
* @throws {AppwriteException}
|
|
807
807
|
* @returns {Promise<Models.DnsRecord>}
|
|
808
808
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
809
809
|
*/
|
|
810
|
-
updateRecordHTTPS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
810
|
+
updateRecordHTTPS(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
811
811
|
/**
|
|
812
812
|
* Create a new MX record for the given domain. MX records are used to define the mail servers responsible
|
|
813
813
|
* for accepting email messages for the domain. Multiple MX records can be created with different priorities.
|
|
@@ -817,8 +817,8 @@ export declare class Domains {
|
|
|
817
817
|
* @param {string} params.domainId - Domain unique ID.
|
|
818
818
|
* @param {string} params.name - Record name (subdomain).
|
|
819
819
|
* @param {string} params.value - Mail server domain for this MX record.
|
|
820
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
821
|
-
* @param {number} params.priority - MX priority.
|
|
820
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
821
|
+
* @param {number | bigint} params.priority - MX priority.
|
|
822
822
|
* @param {string} params.comment - A comment for this record.
|
|
823
823
|
* @throws {AppwriteException}
|
|
824
824
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -827,8 +827,8 @@ export declare class Domains {
|
|
|
827
827
|
domainId: string;
|
|
828
828
|
name: string;
|
|
829
829
|
value: string;
|
|
830
|
-
ttl: number;
|
|
831
|
-
priority: number;
|
|
830
|
+
ttl: number | bigint;
|
|
831
|
+
priority: number | bigint;
|
|
832
832
|
comment?: string;
|
|
833
833
|
}): Promise<Models.DnsRecord>;
|
|
834
834
|
/**
|
|
@@ -840,14 +840,14 @@ export declare class Domains {
|
|
|
840
840
|
* @param {string} domainId - Domain unique ID.
|
|
841
841
|
* @param {string} name - Record name (subdomain).
|
|
842
842
|
* @param {string} value - Mail server domain for this MX record.
|
|
843
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
844
|
-
* @param {number} priority - MX priority.
|
|
843
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
844
|
+
* @param {number | bigint} priority - MX priority.
|
|
845
845
|
* @param {string} comment - A comment for this record.
|
|
846
846
|
* @throws {AppwriteException}
|
|
847
847
|
* @returns {Promise<Models.DnsRecord>}
|
|
848
848
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
849
849
|
*/
|
|
850
|
-
createRecordMX(domainId: string, name: string, value: string, ttl: number, priority: number, comment?: string): Promise<Models.DnsRecord>;
|
|
850
|
+
createRecordMX(domainId: string, name: string, value: string, ttl: number | bigint, priority: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
851
851
|
/**
|
|
852
852
|
* Update an existing MX record for the given domain.
|
|
853
853
|
*
|
|
@@ -855,8 +855,8 @@ export declare class Domains {
|
|
|
855
855
|
* @param {string} params.recordId - DNS record unique ID.
|
|
856
856
|
* @param {string} params.name - Record name (subdomain).
|
|
857
857
|
* @param {string} params.value - Mail server domain for this MX record.
|
|
858
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
859
|
-
* @param {number} params.priority - MX priority.
|
|
858
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
859
|
+
* @param {number | bigint} params.priority - MX priority.
|
|
860
860
|
* @param {string} params.comment - A comment for this record.
|
|
861
861
|
* @throws {AppwriteException}
|
|
862
862
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -866,8 +866,8 @@ export declare class Domains {
|
|
|
866
866
|
recordId: string;
|
|
867
867
|
name: string;
|
|
868
868
|
value: string;
|
|
869
|
-
ttl: number;
|
|
870
|
-
priority: number;
|
|
869
|
+
ttl: number | bigint;
|
|
870
|
+
priority: number | bigint;
|
|
871
871
|
comment?: string;
|
|
872
872
|
}): Promise<Models.DnsRecord>;
|
|
873
873
|
/**
|
|
@@ -877,14 +877,14 @@ export declare class Domains {
|
|
|
877
877
|
* @param {string} recordId - DNS record unique ID.
|
|
878
878
|
* @param {string} name - Record name (subdomain).
|
|
879
879
|
* @param {string} value - Mail server domain for this MX record.
|
|
880
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
881
|
-
* @param {number} priority - MX priority.
|
|
880
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
881
|
+
* @param {number | bigint} priority - MX priority.
|
|
882
882
|
* @param {string} comment - A comment for this record.
|
|
883
883
|
* @throws {AppwriteException}
|
|
884
884
|
* @returns {Promise<Models.DnsRecord>}
|
|
885
885
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
886
886
|
*/
|
|
887
|
-
updateRecordMX(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, comment?: string): Promise<Models.DnsRecord>;
|
|
887
|
+
updateRecordMX(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, priority: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
888
888
|
/**
|
|
889
889
|
* Create a new NS record for the given domain. NS records specify the nameservers that are used
|
|
890
890
|
* to resolve the domain name to IP addresses. Each domain can have multiple NS records.
|
|
@@ -892,7 +892,7 @@ export declare class Domains {
|
|
|
892
892
|
* @param {string} params.domainId - Domain unique ID.
|
|
893
893
|
* @param {string} params.name - Record name (subdomain).
|
|
894
894
|
* @param {string} params.value - Nameserver target for this NS record.
|
|
895
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
895
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
896
896
|
* @param {string} params.comment - A comment for this record.
|
|
897
897
|
* @throws {AppwriteException}
|
|
898
898
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -901,7 +901,7 @@ export declare class Domains {
|
|
|
901
901
|
domainId: string;
|
|
902
902
|
name: string;
|
|
903
903
|
value: string;
|
|
904
|
-
ttl: number;
|
|
904
|
+
ttl: number | bigint;
|
|
905
905
|
comment?: string;
|
|
906
906
|
}): Promise<Models.DnsRecord>;
|
|
907
907
|
/**
|
|
@@ -911,13 +911,13 @@ export declare class Domains {
|
|
|
911
911
|
* @param {string} domainId - Domain unique ID.
|
|
912
912
|
* @param {string} name - Record name (subdomain).
|
|
913
913
|
* @param {string} value - Nameserver target for this NS record.
|
|
914
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
914
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
915
915
|
* @param {string} comment - A comment for this record.
|
|
916
916
|
* @throws {AppwriteException}
|
|
917
917
|
* @returns {Promise<Models.DnsRecord>}
|
|
918
918
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
919
919
|
*/
|
|
920
|
-
createRecordNS(domainId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
920
|
+
createRecordNS(domainId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
921
921
|
/**
|
|
922
922
|
* Update an existing NS record for the given domain. This endpoint allows you to modify
|
|
923
923
|
* the properties of an NS (nameserver) record associated with your domain. You can update
|
|
@@ -928,7 +928,7 @@ export declare class Domains {
|
|
|
928
928
|
* @param {string} params.recordId - DNS record unique ID.
|
|
929
929
|
* @param {string} params.name - Record name (subdomain).
|
|
930
930
|
* @param {string} params.value - Nameserver target for this NS record.
|
|
931
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
931
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
932
932
|
* @param {string} params.comment - A comment for this record.
|
|
933
933
|
* @throws {AppwriteException}
|
|
934
934
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -938,7 +938,7 @@ export declare class Domains {
|
|
|
938
938
|
recordId: string;
|
|
939
939
|
name: string;
|
|
940
940
|
value: string;
|
|
941
|
-
ttl: number;
|
|
941
|
+
ttl: number | bigint;
|
|
942
942
|
comment?: string;
|
|
943
943
|
}): Promise<Models.DnsRecord>;
|
|
944
944
|
/**
|
|
@@ -951,13 +951,13 @@ export declare class Domains {
|
|
|
951
951
|
* @param {string} recordId - DNS record unique ID.
|
|
952
952
|
* @param {string} name - Record name (subdomain).
|
|
953
953
|
* @param {string} value - Nameserver target for this NS record.
|
|
954
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
954
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
955
955
|
* @param {string} comment - A comment for this record.
|
|
956
956
|
* @throws {AppwriteException}
|
|
957
957
|
* @returns {Promise<Models.DnsRecord>}
|
|
958
958
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
959
959
|
*/
|
|
960
|
-
updateRecordNS(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
960
|
+
updateRecordNS(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
961
961
|
/**
|
|
962
962
|
* Create a new SRV record for the given domain. SRV records are used to define the location
|
|
963
963
|
* of servers for specific services. For example, they can be used to specify which server
|
|
@@ -966,10 +966,10 @@ export declare class Domains {
|
|
|
966
966
|
* @param {string} params.domainId - Domain unique ID.
|
|
967
967
|
* @param {string} params.name - Record name (service name).
|
|
968
968
|
* @param {string} params.value - Target hostname for this SRV record.
|
|
969
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
970
|
-
* @param {number} params.priority - Record priority.
|
|
971
|
-
* @param {number} params.weight - Record weight.
|
|
972
|
-
* @param {number} params.port - Port number for the service.
|
|
969
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
970
|
+
* @param {number | bigint} params.priority - Record priority.
|
|
971
|
+
* @param {number | bigint} params.weight - Record weight.
|
|
972
|
+
* @param {number | bigint} params.port - Port number for the service.
|
|
973
973
|
* @param {string} params.comment - A comment for this record.
|
|
974
974
|
* @throws {AppwriteException}
|
|
975
975
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -978,10 +978,10 @@ export declare class Domains {
|
|
|
978
978
|
domainId: string;
|
|
979
979
|
name: string;
|
|
980
980
|
value: string;
|
|
981
|
-
ttl: number;
|
|
982
|
-
priority: number;
|
|
983
|
-
weight: number;
|
|
984
|
-
port: number;
|
|
981
|
+
ttl: number | bigint;
|
|
982
|
+
priority: number | bigint;
|
|
983
|
+
weight: number | bigint;
|
|
984
|
+
port: number | bigint;
|
|
985
985
|
comment?: string;
|
|
986
986
|
}): Promise<Models.DnsRecord>;
|
|
987
987
|
/**
|
|
@@ -992,16 +992,16 @@ export declare class Domains {
|
|
|
992
992
|
* @param {string} domainId - Domain unique ID.
|
|
993
993
|
* @param {string} name - Record name (service name).
|
|
994
994
|
* @param {string} value - Target hostname for this SRV record.
|
|
995
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
996
|
-
* @param {number} priority - Record priority.
|
|
997
|
-
* @param {number} weight - Record weight.
|
|
998
|
-
* @param {number} port - Port number for the service.
|
|
995
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
996
|
+
* @param {number | bigint} priority - Record priority.
|
|
997
|
+
* @param {number | bigint} weight - Record weight.
|
|
998
|
+
* @param {number | bigint} port - Port number for the service.
|
|
999
999
|
* @param {string} comment - A comment for this record.
|
|
1000
1000
|
* @throws {AppwriteException}
|
|
1001
1001
|
* @returns {Promise<Models.DnsRecord>}
|
|
1002
1002
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1003
1003
|
*/
|
|
1004
|
-
createRecordSRV(domainId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1004
|
+
createRecordSRV(domainId: string, name: string, value: string, ttl: number | bigint, priority: number | bigint, weight: number | bigint, port: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Update an existing SRV record for the given domain.
|
|
1007
1007
|
*
|
|
@@ -1022,10 +1022,10 @@ export declare class Domains {
|
|
|
1022
1022
|
* @param {string} params.recordId - DNS record unique ID.
|
|
1023
1023
|
* @param {string} params.name - Record name (service name).
|
|
1024
1024
|
* @param {string} params.value - Target hostname for this SRV record.
|
|
1025
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1026
|
-
* @param {number} params.priority - Record priority.
|
|
1027
|
-
* @param {number} params.weight - Record weight.
|
|
1028
|
-
* @param {number} params.port - Port number for the service.
|
|
1025
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1026
|
+
* @param {number | bigint} params.priority - Record priority.
|
|
1027
|
+
* @param {number | bigint} params.weight - Record weight.
|
|
1028
|
+
* @param {number | bigint} params.port - Port number for the service.
|
|
1029
1029
|
* @param {string} params.comment - A comment for this record.
|
|
1030
1030
|
* @throws {AppwriteException}
|
|
1031
1031
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -1035,10 +1035,10 @@ export declare class Domains {
|
|
|
1035
1035
|
recordId: string;
|
|
1036
1036
|
name: string;
|
|
1037
1037
|
value: string;
|
|
1038
|
-
ttl: number;
|
|
1039
|
-
priority: number;
|
|
1040
|
-
weight: number;
|
|
1041
|
-
port: number;
|
|
1038
|
+
ttl: number | bigint;
|
|
1039
|
+
priority: number | bigint;
|
|
1040
|
+
weight: number | bigint;
|
|
1041
|
+
port: number | bigint;
|
|
1042
1042
|
comment?: string;
|
|
1043
1043
|
}): Promise<Models.DnsRecord>;
|
|
1044
1044
|
/**
|
|
@@ -1061,16 +1061,16 @@ export declare class Domains {
|
|
|
1061
1061
|
* @param {string} recordId - DNS record unique ID.
|
|
1062
1062
|
* @param {string} name - Record name (service name).
|
|
1063
1063
|
* @param {string} value - Target hostname for this SRV record.
|
|
1064
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1065
|
-
* @param {number} priority - Record priority.
|
|
1066
|
-
* @param {number} weight - Record weight.
|
|
1067
|
-
* @param {number} port - Port number for the service.
|
|
1064
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1065
|
+
* @param {number | bigint} priority - Record priority.
|
|
1066
|
+
* @param {number | bigint} weight - Record weight.
|
|
1067
|
+
* @param {number | bigint} port - Port number for the service.
|
|
1068
1068
|
* @param {string} comment - A comment for this record.
|
|
1069
1069
|
* @throws {AppwriteException}
|
|
1070
1070
|
* @returns {Promise<Models.DnsRecord>}
|
|
1071
1071
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1072
1072
|
*/
|
|
1073
|
-
updateRecordSRV(domainId: string, recordId: string, name: string, value: string, ttl: number, priority: number, weight: number, port: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1073
|
+
updateRecordSRV(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, priority: number | bigint, weight: number | bigint, port: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Create a new TXT record for the given domain. TXT records can be used
|
|
1076
1076
|
* to provide additional information about your domain, such as domain
|
|
@@ -1078,7 +1078,7 @@ export declare class Domains {
|
|
|
1078
1078
|
*
|
|
1079
1079
|
* @param {string} params.domainId - Domain unique ID.
|
|
1080
1080
|
* @param {string} params.name - Record name (subdomain) for the TXT record.
|
|
1081
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1081
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1082
1082
|
* @param {string} params.value - TXT record value.
|
|
1083
1083
|
* @param {string} params.comment - A comment for this record.
|
|
1084
1084
|
* @throws {AppwriteException}
|
|
@@ -1087,7 +1087,7 @@ export declare class Domains {
|
|
|
1087
1087
|
createRecordTXT(params: {
|
|
1088
1088
|
domainId: string;
|
|
1089
1089
|
name: string;
|
|
1090
|
-
ttl: number;
|
|
1090
|
+
ttl: number | bigint;
|
|
1091
1091
|
value?: string;
|
|
1092
1092
|
comment?: string;
|
|
1093
1093
|
}): Promise<Models.DnsRecord>;
|
|
@@ -1098,14 +1098,14 @@ export declare class Domains {
|
|
|
1098
1098
|
*
|
|
1099
1099
|
* @param {string} domainId - Domain unique ID.
|
|
1100
1100
|
* @param {string} name - Record name (subdomain) for the TXT record.
|
|
1101
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1101
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1102
1102
|
* @param {string} value - TXT record value.
|
|
1103
1103
|
* @param {string} comment - A comment for this record.
|
|
1104
1104
|
* @throws {AppwriteException}
|
|
1105
1105
|
* @returns {Promise<Models.DnsRecord>}
|
|
1106
1106
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1107
1107
|
*/
|
|
1108
|
-
createRecordTXT(domainId: string, name: string, ttl: number, value?: string, comment?: string): Promise<Models.DnsRecord>;
|
|
1108
|
+
createRecordTXT(domainId: string, name: string, ttl: number | bigint, value?: string, comment?: string): Promise<Models.DnsRecord>;
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Update an existing TXT record for the given domain.
|
|
1111
1111
|
*
|
|
@@ -1116,7 +1116,7 @@ export declare class Domains {
|
|
|
1116
1116
|
* @param {string} params.recordId - DNS record unique ID.
|
|
1117
1117
|
* @param {string} params.name - Record name (subdomain) for the TXT record.
|
|
1118
1118
|
* @param {string} params.value - TXT record value.
|
|
1119
|
-
* @param {number} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1119
|
+
* @param {number | bigint} params.ttl - Time to live, in seconds. Must be greater than 0.
|
|
1120
1120
|
* @param {string} params.comment - A comment for this record.
|
|
1121
1121
|
* @throws {AppwriteException}
|
|
1122
1122
|
* @returns {Promise<Models.DnsRecord>}
|
|
@@ -1126,7 +1126,7 @@ export declare class Domains {
|
|
|
1126
1126
|
recordId: string;
|
|
1127
1127
|
name: string;
|
|
1128
1128
|
value: string;
|
|
1129
|
-
ttl: number;
|
|
1129
|
+
ttl: number | bigint;
|
|
1130
1130
|
comment?: string;
|
|
1131
1131
|
}): Promise<Models.DnsRecord>;
|
|
1132
1132
|
/**
|
|
@@ -1139,13 +1139,13 @@ export declare class Domains {
|
|
|
1139
1139
|
* @param {string} recordId - DNS record unique ID.
|
|
1140
1140
|
* @param {string} name - Record name (subdomain) for the TXT record.
|
|
1141
1141
|
* @param {string} value - TXT record value.
|
|
1142
|
-
* @param {number} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1142
|
+
* @param {number | bigint} ttl - Time to live, in seconds. Must be greater than 0.
|
|
1143
1143
|
* @param {string} comment - A comment for this record.
|
|
1144
1144
|
* @throws {AppwriteException}
|
|
1145
1145
|
* @returns {Promise<Models.DnsRecord>}
|
|
1146
1146
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1147
1147
|
*/
|
|
1148
|
-
updateRecordTXT(domainId: string, recordId: string, name: string, value: string, ttl: number, comment?: string): Promise<Models.DnsRecord>;
|
|
1148
|
+
updateRecordTXT(domainId: string, recordId: string, name: string, value: string, ttl: number | bigint, comment?: string): Promise<Models.DnsRecord>;
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Get a single DNS record for a given domain by record ID.
|
|
1151
1151
|
*
|