node-appwrite 14.0.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +1 -1
  2. package/dist/client.d.mts +1 -0
  3. package/dist/client.d.ts +1 -0
  4. package/dist/client.js +5 -2
  5. package/dist/client.js.map +1 -1
  6. package/dist/client.mjs +5 -2
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/enums/image-format.d.mts +2 -1
  9. package/dist/enums/image-format.d.ts +2 -1
  10. package/dist/enums/image-format.js +1 -0
  11. package/dist/enums/image-format.js.map +1 -1
  12. package/dist/enums/image-format.mjs +1 -0
  13. package/dist/enums/image-format.mjs.map +1 -1
  14. package/dist/enums/message-priority.d.mts +6 -0
  15. package/dist/enums/message-priority.d.ts +6 -0
  16. package/dist/enums/message-priority.js +11 -0
  17. package/dist/enums/message-priority.js.map +1 -0
  18. package/dist/enums/message-priority.mjs +10 -0
  19. package/dist/enums/message-priority.mjs.map +1 -0
  20. package/dist/enums/runtime.d.mts +15 -2
  21. package/dist/enums/runtime.d.ts +15 -2
  22. package/dist/enums/runtime.js +14 -1
  23. package/dist/enums/runtime.js.map +1 -1
  24. package/dist/enums/runtime.mjs +14 -1
  25. package/dist/enums/runtime.mjs.map +1 -1
  26. package/dist/index.d.mts +1 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +5 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +1 -0
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/models.d.mts +96 -4
  33. package/dist/models.d.ts +96 -4
  34. package/dist/services/account.d.mts +11 -11
  35. package/dist/services/account.d.ts +11 -11
  36. package/dist/services/account.js +11 -11
  37. package/dist/services/account.js.map +1 -1
  38. package/dist/services/account.mjs +11 -11
  39. package/dist/services/account.mjs.map +1 -1
  40. package/dist/services/databases.d.mts +21 -10
  41. package/dist/services/databases.d.ts +21 -10
  42. package/dist/services/databases.js +54 -10
  43. package/dist/services/databases.js.map +1 -1
  44. package/dist/services/databases.mjs +54 -10
  45. package/dist/services/databases.mjs.map +1 -1
  46. package/dist/services/locale.d.mts +1 -1
  47. package/dist/services/locale.d.ts +1 -1
  48. package/dist/services/locale.js +1 -1
  49. package/dist/services/locale.js.map +1 -1
  50. package/dist/services/locale.mjs +1 -1
  51. package/dist/services/locale.mjs.map +1 -1
  52. package/dist/services/messaging.d.mts +10 -3
  53. package/dist/services/messaging.d.ts +10 -3
  54. package/dist/services/messaging.js +27 -9
  55. package/dist/services/messaging.js.map +1 -1
  56. package/dist/services/messaging.mjs +27 -9
  57. package/dist/services/messaging.mjs.map +1 -1
  58. package/dist/services/storage.d.mts +1 -1
  59. package/dist/services/storage.d.ts +1 -1
  60. package/dist/services/storage.js +1 -1
  61. package/dist/services/storage.js.map +1 -1
  62. package/dist/services/storage.mjs +1 -1
  63. package/dist/services/storage.mjs.map +1 -1
  64. package/dist/services/teams.d.mts +2 -2
  65. package/dist/services/teams.d.ts +2 -2
  66. package/dist/services/teams.js +2 -2
  67. package/dist/services/teams.js.map +1 -1
  68. package/dist/services/teams.mjs +2 -2
  69. package/dist/services/teams.mjs.map +1 -1
  70. package/dist/services/users.d.mts +10 -10
  71. package/dist/services/users.d.ts +10 -10
  72. package/dist/services/users.js +10 -10
  73. package/dist/services/users.js.map +1 -1
  74. package/dist/services/users.mjs +10 -10
  75. package/dist/services/users.mjs.map +1 -1
  76. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { IndexType } from './enums/index-type.js';
26
26
  export { Runtime } from './enums/runtime.js';
27
27
  export { ExecutionMethod } from './enums/execution-method.js';
28
28
  export { Name } from './enums/name.js';
29
+ export { MessagePriority } from './enums/message-priority.js';
29
30
  export { SmtpEncryption } from './enums/smtp-encryption.js';
30
31
  export { Compression } from './enums/compression.js';
31
32
  export { ImageGravity } from './enums/image-gravity.js';
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ var indexType = require('./enums/index-type');
27
27
  var runtime = require('./enums/runtime');
28
28
  var executionMethod = require('./enums/execution-method');
29
29
  var name = require('./enums/name');
30
+ var messagePriority = require('./enums/message-priority');
30
31
  var smtpEncryption = require('./enums/smtp-encryption');
31
32
  var compression = require('./enums/compression');
32
33
  var imageGravity = require('./enums/image-gravity');
@@ -152,6 +153,10 @@ Object.defineProperty(exports, 'Name', {
152
153
  enumerable: true,
153
154
  get: function () { return name.Name; }
154
155
  });
156
+ Object.defineProperty(exports, 'MessagePriority', {
157
+ enumerable: true,
158
+ get: function () { return messagePriority.MessagePriority; }
159
+ });
155
160
  Object.defineProperty(exports, 'SmtpEncryption', {
156
161
  enumerable: true,
157
162
  get: function () { return smtpEncryption.SmtpEncryption; }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Storage } from './services/storage';\nexport { Teams } from './services/teams';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Storage } from './services/storage';\nexport { Teams } from './services/teams';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { MessagePriority } from './enums/message-priority';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\n"]}
package/dist/index.mjs CHANGED
@@ -25,6 +25,7 @@ export { IndexType } from './enums/index-type.mjs';
25
25
  export { Runtime } from './enums/runtime.mjs';
26
26
  export { ExecutionMethod } from './enums/execution-method.mjs';
27
27
  export { Name } from './enums/name.mjs';
28
+ export { MessagePriority } from './enums/message-priority.mjs';
28
29
  export { SmtpEncryption } from './enums/smtp-encryption.mjs';
29
30
  export { Compression } from './enums/compression.mjs';
30
31
  export { ImageGravity } from './enums/image-gravity.mjs';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Storage } from './services/storage';\nexport { Teams } from './services/teams';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAAA,SAAS,QAAQ,OAAO,yBAAyB;AACjD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,aAAa;AACtB,SAAS,aAAa;AAGtB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,wBAAwB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,6BAA6B","sourcesContent":["export { Client, Query, AppwriteException } from './client';\nexport { Account } from './services/account';\nexport { Avatars } from './services/avatars';\nexport { Databases } from './services/databases';\nexport { Functions } from './services/functions';\nexport { Graphql } from './services/graphql';\nexport { Health } from './services/health';\nexport { Locale } from './services/locale';\nexport { Messaging } from './services/messaging';\nexport { Storage } from './services/storage';\nexport { Teams } from './services/teams';\nexport { Users } from './services/users';\nexport type { Models, Payload, UploadProgress } from './client';\nexport type { QueryTypes, QueryTypesList } from './query';\nexport { Permission } from './permission';\nexport { Role } from './role';\nexport { ID } from './id';\nexport { AuthenticatorType } from './enums/authenticator-type';\nexport { AuthenticationFactor } from './enums/authentication-factor';\nexport { OAuthProvider } from './enums/o-auth-provider';\nexport { Browser } from './enums/browser';\nexport { CreditCard } from './enums/credit-card';\nexport { Flag } from './enums/flag';\nexport { RelationshipType } from './enums/relationship-type';\nexport { RelationMutate } from './enums/relation-mutate';\nexport { IndexType } from './enums/index-type';\nexport { Runtime } from './enums/runtime';\nexport { ExecutionMethod } from './enums/execution-method';\nexport { Name } from './enums/name';\nexport { MessagePriority } from './enums/message-priority';\nexport { SmtpEncryption } from './enums/smtp-encryption';\nexport { Compression } from './enums/compression';\nexport { ImageGravity } from './enums/image-gravity';\nexport { ImageFormat } from './enums/image-format';\nexport { PasswordHash } from './enums/password-hash';\nexport { MessagingProviderType } from './enums/messaging-provider-type';\n"]}
package/dist/models.d.mts CHANGED
@@ -490,6 +490,14 @@ declare namespace Models {
490
490
  * Is attribute an array?
491
491
  */
492
492
  array?: boolean;
493
+ /**
494
+ * Attribute creation date in ISO 8601 format.
495
+ */
496
+ $createdAt: string;
497
+ /**
498
+ * Attribute update date in ISO 8601 format.
499
+ */
500
+ $updatedAt: string;
493
501
  /**
494
502
  * Attribute size.
495
503
  */
@@ -527,6 +535,14 @@ declare namespace Models {
527
535
  * Is attribute an array?
528
536
  */
529
537
  array?: boolean;
538
+ /**
539
+ * Attribute creation date in ISO 8601 format.
540
+ */
541
+ $createdAt: string;
542
+ /**
543
+ * Attribute update date in ISO 8601 format.
544
+ */
545
+ $updatedAt: string;
530
546
  /**
531
547
  * Minimum value to enforce for new documents.
532
548
  */
@@ -568,6 +584,14 @@ declare namespace Models {
568
584
  * Is attribute an array?
569
585
  */
570
586
  array?: boolean;
587
+ /**
588
+ * Attribute creation date in ISO 8601 format.
589
+ */
590
+ $createdAt: string;
591
+ /**
592
+ * Attribute update date in ISO 8601 format.
593
+ */
594
+ $updatedAt: string;
571
595
  /**
572
596
  * Minimum value to enforce for new documents.
573
597
  */
@@ -609,6 +633,14 @@ declare namespace Models {
609
633
  * Is attribute an array?
610
634
  */
611
635
  array?: boolean;
636
+ /**
637
+ * Attribute creation date in ISO 8601 format.
638
+ */
639
+ $createdAt: string;
640
+ /**
641
+ * Attribute update date in ISO 8601 format.
642
+ */
643
+ $updatedAt: string;
612
644
  /**
613
645
  * Default value for attribute when not provided. Cannot be set when attribute is required.
614
646
  */
@@ -642,6 +674,14 @@ declare namespace Models {
642
674
  * Is attribute an array?
643
675
  */
644
676
  array?: boolean;
677
+ /**
678
+ * Attribute creation date in ISO 8601 format.
679
+ */
680
+ $createdAt: string;
681
+ /**
682
+ * Attribute update date in ISO 8601 format.
683
+ */
684
+ $updatedAt: string;
645
685
  /**
646
686
  * String format.
647
687
  */
@@ -679,6 +719,14 @@ declare namespace Models {
679
719
  * Is attribute an array?
680
720
  */
681
721
  array?: boolean;
722
+ /**
723
+ * Attribute creation date in ISO 8601 format.
724
+ */
725
+ $createdAt: string;
726
+ /**
727
+ * Attribute update date in ISO 8601 format.
728
+ */
729
+ $updatedAt: string;
682
730
  /**
683
731
  * Array of elements in enumerated type.
684
732
  */
@@ -720,6 +768,14 @@ declare namespace Models {
720
768
  * Is attribute an array?
721
769
  */
722
770
  array?: boolean;
771
+ /**
772
+ * Attribute creation date in ISO 8601 format.
773
+ */
774
+ $createdAt: string;
775
+ /**
776
+ * Attribute update date in ISO 8601 format.
777
+ */
778
+ $updatedAt: string;
723
779
  /**
724
780
  * String format.
725
781
  */
@@ -757,6 +813,14 @@ declare namespace Models {
757
813
  * Is attribute an array?
758
814
  */
759
815
  array?: boolean;
816
+ /**
817
+ * Attribute creation date in ISO 8601 format.
818
+ */
819
+ $createdAt: string;
820
+ /**
821
+ * Attribute update date in ISO 8601 format.
822
+ */
823
+ $updatedAt: string;
760
824
  /**
761
825
  * String format.
762
826
  */
@@ -794,6 +858,14 @@ declare namespace Models {
794
858
  * Is attribute an array?
795
859
  */
796
860
  array?: boolean;
861
+ /**
862
+ * Attribute creation date in ISO 8601 format.
863
+ */
864
+ $createdAt: string;
865
+ /**
866
+ * Attribute update date in ISO 8601 format.
867
+ */
868
+ $updatedAt: string;
797
869
  /**
798
870
  * ISO 8601 format.
799
871
  */
@@ -831,6 +903,14 @@ declare namespace Models {
831
903
  * Is attribute an array?
832
904
  */
833
905
  array?: boolean;
906
+ /**
907
+ * Attribute creation date in ISO 8601 format.
908
+ */
909
+ $createdAt: string;
910
+ /**
911
+ * Attribute update date in ISO 8601 format.
912
+ */
913
+ $updatedAt: string;
834
914
  /**
835
915
  * The ID of the related collection.
836
916
  */
@@ -884,6 +964,14 @@ declare namespace Models {
884
964
  * Index orders.
885
965
  */
886
966
  orders?: string[];
967
+ /**
968
+ * Index creation date in ISO 8601 format.
969
+ */
970
+ $createdAt: string;
971
+ /**
972
+ * Index update date in ISO 8601 format.
973
+ */
974
+ $updatedAt: string;
887
975
  };
888
976
  /**
889
977
  * Document
@@ -1596,11 +1684,11 @@ declare namespace Models {
1596
1684
  */
1597
1685
  userId: string;
1598
1686
  /**
1599
- * User name.
1687
+ * User name. Hide this attribute by toggling membership privacy in the Console.
1600
1688
  */
1601
1689
  userName: string;
1602
1690
  /**
1603
- * User email address.
1691
+ * User email address. Hide this attribute by toggling membership privacy in the Console.
1604
1692
  */
1605
1693
  userEmail: string;
1606
1694
  /**
@@ -1624,7 +1712,7 @@ declare namespace Models {
1624
1712
  */
1625
1713
  confirm: boolean;
1626
1714
  /**
1627
- * Multi factor authentication status, true if the user has MFA enabled or false otherwise.
1715
+ * Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
1628
1716
  */
1629
1717
  mfa: boolean;
1630
1718
  /**
@@ -1689,7 +1777,7 @@ declare namespace Models {
1689
1777
  */
1690
1778
  events: string[];
1691
1779
  /**
1692
- * Function execution schedult in CRON format.
1780
+ * Function execution schedule in CRON format.
1693
1781
  */
1694
1782
  schedule: string;
1695
1783
  /**
@@ -2506,6 +2594,10 @@ declare namespace Models {
2506
2594
  * The target identifier.
2507
2595
  */
2508
2596
  identifier: string;
2597
+ /**
2598
+ * Is the target expired.
2599
+ */
2600
+ expired: boolean;
2509
2601
  };
2510
2602
  }
2511
2603
 
package/dist/models.d.ts CHANGED
@@ -490,6 +490,14 @@ declare namespace Models {
490
490
  * Is attribute an array?
491
491
  */
492
492
  array?: boolean;
493
+ /**
494
+ * Attribute creation date in ISO 8601 format.
495
+ */
496
+ $createdAt: string;
497
+ /**
498
+ * Attribute update date in ISO 8601 format.
499
+ */
500
+ $updatedAt: string;
493
501
  /**
494
502
  * Attribute size.
495
503
  */
@@ -527,6 +535,14 @@ declare namespace Models {
527
535
  * Is attribute an array?
528
536
  */
529
537
  array?: boolean;
538
+ /**
539
+ * Attribute creation date in ISO 8601 format.
540
+ */
541
+ $createdAt: string;
542
+ /**
543
+ * Attribute update date in ISO 8601 format.
544
+ */
545
+ $updatedAt: string;
530
546
  /**
531
547
  * Minimum value to enforce for new documents.
532
548
  */
@@ -568,6 +584,14 @@ declare namespace Models {
568
584
  * Is attribute an array?
569
585
  */
570
586
  array?: boolean;
587
+ /**
588
+ * Attribute creation date in ISO 8601 format.
589
+ */
590
+ $createdAt: string;
591
+ /**
592
+ * Attribute update date in ISO 8601 format.
593
+ */
594
+ $updatedAt: string;
571
595
  /**
572
596
  * Minimum value to enforce for new documents.
573
597
  */
@@ -609,6 +633,14 @@ declare namespace Models {
609
633
  * Is attribute an array?
610
634
  */
611
635
  array?: boolean;
636
+ /**
637
+ * Attribute creation date in ISO 8601 format.
638
+ */
639
+ $createdAt: string;
640
+ /**
641
+ * Attribute update date in ISO 8601 format.
642
+ */
643
+ $updatedAt: string;
612
644
  /**
613
645
  * Default value for attribute when not provided. Cannot be set when attribute is required.
614
646
  */
@@ -642,6 +674,14 @@ declare namespace Models {
642
674
  * Is attribute an array?
643
675
  */
644
676
  array?: boolean;
677
+ /**
678
+ * Attribute creation date in ISO 8601 format.
679
+ */
680
+ $createdAt: string;
681
+ /**
682
+ * Attribute update date in ISO 8601 format.
683
+ */
684
+ $updatedAt: string;
645
685
  /**
646
686
  * String format.
647
687
  */
@@ -679,6 +719,14 @@ declare namespace Models {
679
719
  * Is attribute an array?
680
720
  */
681
721
  array?: boolean;
722
+ /**
723
+ * Attribute creation date in ISO 8601 format.
724
+ */
725
+ $createdAt: string;
726
+ /**
727
+ * Attribute update date in ISO 8601 format.
728
+ */
729
+ $updatedAt: string;
682
730
  /**
683
731
  * Array of elements in enumerated type.
684
732
  */
@@ -720,6 +768,14 @@ declare namespace Models {
720
768
  * Is attribute an array?
721
769
  */
722
770
  array?: boolean;
771
+ /**
772
+ * Attribute creation date in ISO 8601 format.
773
+ */
774
+ $createdAt: string;
775
+ /**
776
+ * Attribute update date in ISO 8601 format.
777
+ */
778
+ $updatedAt: string;
723
779
  /**
724
780
  * String format.
725
781
  */
@@ -757,6 +813,14 @@ declare namespace Models {
757
813
  * Is attribute an array?
758
814
  */
759
815
  array?: boolean;
816
+ /**
817
+ * Attribute creation date in ISO 8601 format.
818
+ */
819
+ $createdAt: string;
820
+ /**
821
+ * Attribute update date in ISO 8601 format.
822
+ */
823
+ $updatedAt: string;
760
824
  /**
761
825
  * String format.
762
826
  */
@@ -794,6 +858,14 @@ declare namespace Models {
794
858
  * Is attribute an array?
795
859
  */
796
860
  array?: boolean;
861
+ /**
862
+ * Attribute creation date in ISO 8601 format.
863
+ */
864
+ $createdAt: string;
865
+ /**
866
+ * Attribute update date in ISO 8601 format.
867
+ */
868
+ $updatedAt: string;
797
869
  /**
798
870
  * ISO 8601 format.
799
871
  */
@@ -831,6 +903,14 @@ declare namespace Models {
831
903
  * Is attribute an array?
832
904
  */
833
905
  array?: boolean;
906
+ /**
907
+ * Attribute creation date in ISO 8601 format.
908
+ */
909
+ $createdAt: string;
910
+ /**
911
+ * Attribute update date in ISO 8601 format.
912
+ */
913
+ $updatedAt: string;
834
914
  /**
835
915
  * The ID of the related collection.
836
916
  */
@@ -884,6 +964,14 @@ declare namespace Models {
884
964
  * Index orders.
885
965
  */
886
966
  orders?: string[];
967
+ /**
968
+ * Index creation date in ISO 8601 format.
969
+ */
970
+ $createdAt: string;
971
+ /**
972
+ * Index update date in ISO 8601 format.
973
+ */
974
+ $updatedAt: string;
887
975
  };
888
976
  /**
889
977
  * Document
@@ -1596,11 +1684,11 @@ declare namespace Models {
1596
1684
  */
1597
1685
  userId: string;
1598
1686
  /**
1599
- * User name.
1687
+ * User name. Hide this attribute by toggling membership privacy in the Console.
1600
1688
  */
1601
1689
  userName: string;
1602
1690
  /**
1603
- * User email address.
1691
+ * User email address. Hide this attribute by toggling membership privacy in the Console.
1604
1692
  */
1605
1693
  userEmail: string;
1606
1694
  /**
@@ -1624,7 +1712,7 @@ declare namespace Models {
1624
1712
  */
1625
1713
  confirm: boolean;
1626
1714
  /**
1627
- * Multi factor authentication status, true if the user has MFA enabled or false otherwise.
1715
+ * Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.
1628
1716
  */
1629
1717
  mfa: boolean;
1630
1718
  /**
@@ -1689,7 +1777,7 @@ declare namespace Models {
1689
1777
  */
1690
1778
  events: string[];
1691
1779
  /**
1692
- * Function execution schedult in CRON format.
1780
+ * Function execution schedule in CRON format.
1693
1781
  */
1694
1782
  schedule: string;
1695
1783
  /**
@@ -2506,6 +2594,10 @@ declare namespace Models {
2506
2594
  * The target identifier.
2507
2595
  */
2508
2596
  identifier: string;
2597
+ /**
2598
+ * Is the target expired.
2599
+ */
2600
+ expired: boolean;
2509
2601
  };
2510
2602
  }
2511
2603
 
@@ -44,7 +44,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
44
44
  */
45
45
  updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>>;
46
46
  /**
47
- * List Identities
47
+ * List identities
48
48
  *
49
49
  * Get the list of identities for the currently logged in user.
50
50
  *
@@ -93,7 +93,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
93
93
  */
94
94
  updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
95
95
  /**
96
- * Create Authenticator
96
+ * Create authenticator
97
97
  *
98
98
  * Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
99
99
  *
@@ -103,7 +103,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
103
103
  */
104
104
  createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
105
105
  /**
106
- * Verify Authenticator
106
+ * Verify authenticator
107
107
  *
108
108
  * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
109
109
  *
@@ -114,7 +114,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
114
114
  */
115
115
  updateMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
116
116
  /**
117
- * Delete Authenticator
117
+ * Delete authenticator
118
118
  *
119
119
  * Delete an authenticator for a user by ID.
120
120
  *
@@ -124,7 +124,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
124
124
  */
125
125
  deleteMfaAuthenticator(type: AuthenticatorType): Promise<{}>;
126
126
  /**
127
- * Create MFA Challenge
127
+ * Create MFA challenge
128
128
  *
129
129
  * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
130
130
  *
@@ -134,7 +134,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
134
134
  */
135
135
  createMfaChallenge(factor: AuthenticationFactor): Promise<Models.MfaChallenge>;
136
136
  /**
137
- * Create MFA Challenge (confirmation)
137
+ * Create MFA challenge (confirmation)
138
138
  *
139
139
  * Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
140
140
  *
@@ -145,7 +145,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
145
145
  */
146
146
  updateMfaChallenge(challengeId: string, otp: string): Promise<{}>;
147
147
  /**
148
- * List Factors
148
+ * List factors
149
149
  *
150
150
  * List the factors available on the account to be used as a MFA challange.
151
151
  *
@@ -154,7 +154,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
154
154
  */
155
155
  listMfaFactors(): Promise<Models.MfaFactors>;
156
156
  /**
157
- * Get MFA Recovery Codes
157
+ * Get MFA recovery codes
158
158
  *
159
159
  * Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
160
160
  *
@@ -163,7 +163,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
163
163
  */
164
164
  getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
165
165
  /**
166
- * Create MFA Recovery Codes
166
+ * Create MFA recovery codes
167
167
  *
168
168
  * Generate recovery codes as backup for MFA flow. It&#039;s recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
169
169
  *
@@ -172,7 +172,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
172
172
  */
173
173
  createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
174
174
  /**
175
- * Regenerate MFA Recovery Codes
175
+ * Regenerate MFA recovery codes
176
176
  *
177
177
  * Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
178
178
  *
@@ -385,7 +385,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
385
385
  /**
386
386
  * Create magic URL token
387
387
  *
388
- * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.
388
+ * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour.
389
389
 
390
390
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
391
391
 
@@ -44,7 +44,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
44
44
  */
45
45
  updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>>;
46
46
  /**
47
- * List Identities
47
+ * List identities
48
48
  *
49
49
  * Get the list of identities for the currently logged in user.
50
50
  *
@@ -93,7 +93,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
93
93
  */
94
94
  updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
95
95
  /**
96
- * Create Authenticator
96
+ * Create authenticator
97
97
  *
98
98
  * Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
99
99
  *
@@ -103,7 +103,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
103
103
  */
104
104
  createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
105
105
  /**
106
- * Verify Authenticator
106
+ * Verify authenticator
107
107
  *
108
108
  * Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
109
109
  *
@@ -114,7 +114,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
114
114
  */
115
115
  updateMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
116
116
  /**
117
- * Delete Authenticator
117
+ * Delete authenticator
118
118
  *
119
119
  * Delete an authenticator for a user by ID.
120
120
  *
@@ -124,7 +124,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
124
124
  */
125
125
  deleteMfaAuthenticator(type: AuthenticatorType): Promise<{}>;
126
126
  /**
127
- * Create MFA Challenge
127
+ * Create MFA challenge
128
128
  *
129
129
  * Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
130
130
  *
@@ -134,7 +134,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
134
134
  */
135
135
  createMfaChallenge(factor: AuthenticationFactor): Promise<Models.MfaChallenge>;
136
136
  /**
137
- * Create MFA Challenge (confirmation)
137
+ * Create MFA challenge (confirmation)
138
138
  *
139
139
  * Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
140
140
  *
@@ -145,7 +145,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
145
145
  */
146
146
  updateMfaChallenge(challengeId: string, otp: string): Promise<{}>;
147
147
  /**
148
- * List Factors
148
+ * List factors
149
149
  *
150
150
  * List the factors available on the account to be used as a MFA challange.
151
151
  *
@@ -154,7 +154,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
154
154
  */
155
155
  listMfaFactors(): Promise<Models.MfaFactors>;
156
156
  /**
157
- * Get MFA Recovery Codes
157
+ * Get MFA recovery codes
158
158
  *
159
159
  * Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
160
160
  *
@@ -163,7 +163,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
163
163
  */
164
164
  getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
165
165
  /**
166
- * Create MFA Recovery Codes
166
+ * Create MFA recovery codes
167
167
  *
168
168
  * Generate recovery codes as backup for MFA flow. It&#039;s recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
169
169
  *
@@ -172,7 +172,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
172
172
  */
173
173
  createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
174
174
  /**
175
- * Regenerate MFA Recovery Codes
175
+ * Regenerate MFA recovery codes
176
176
  *
177
177
  * Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
178
178
  *
@@ -385,7 +385,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
385
385
  /**
386
386
  * Create magic URL token
387
387
  *
388
- * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.
388
+ * Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user&#039;s email address is valid for 1 hour.
389
389
 
390
390
  A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
391
391