@appwrite.io/console 12.1.0 → 12.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.
@@ -9,30 +9,29 @@ export declare class Proxy {
9
9
  * Get a list of all the proxy rules. You can use the query params to filter your results.
10
10
  *
11
11
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: domain, type, trigger, deploymentResourceType, deploymentResourceId, deploymentId, deploymentVcsProviderBranch
12
- * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
13
12
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
14
13
  * @throws {AppwriteException}
15
14
  * @returns {Promise<Models.ProxyRuleList>}
16
15
  */
17
16
  listRules(params?: {
18
17
  queries?: string[];
19
- search?: string;
20
18
  total?: boolean;
21
19
  }): Promise<Models.ProxyRuleList>;
22
20
  /**
23
21
  * Get a list of all the proxy rules. You can use the query params to filter your results.
24
22
  *
25
23
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: domain, type, trigger, deploymentResourceType, deploymentResourceId, deploymentId, deploymentVcsProviderBranch
26
- * @param {string} search - Search term to filter your list results. Max length: 256 chars.
27
24
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
28
25
  * @throws {AppwriteException}
29
26
  * @returns {Promise<Models.ProxyRuleList>}
30
27
  * @deprecated Use the object parameter style method for a better developer experience.
31
28
  */
32
- listRules(queries?: string[], search?: string, total?: boolean): Promise<Models.ProxyRuleList>;
29
+ listRules(queries?: string[], total?: boolean): Promise<Models.ProxyRuleList>;
33
30
  /**
34
31
  * Create a new proxy rule for serving Appwrite's API on custom domain.
35
32
  *
33
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
34
+ *
36
35
  * @param {string} params.domain - Domain name.
37
36
  * @throws {AppwriteException}
38
37
  * @returns {Promise<Models.ProxyRule>}
@@ -43,6 +42,8 @@ export declare class Proxy {
43
42
  /**
44
43
  * Create a new proxy rule for serving Appwrite's API on custom domain.
45
44
  *
45
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
46
+ *
46
47
  * @param {string} domain - Domain name.
47
48
  * @throws {AppwriteException}
48
49
  * @returns {Promise<Models.ProxyRule>}
@@ -52,6 +53,8 @@ export declare class Proxy {
52
53
  /**
53
54
  * Create a new proxy rule for executing Appwrite Function on custom domain.
54
55
  *
56
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
57
+ *
55
58
  * @param {string} params.domain - Domain name.
56
59
  * @param {string} params.functionId - ID of function to be executed.
57
60
  * @param {string} params.branch - Name of VCS branch to deploy changes automatically
@@ -66,6 +69,8 @@ export declare class Proxy {
66
69
  /**
67
70
  * Create a new proxy rule for executing Appwrite Function on custom domain.
68
71
  *
72
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
73
+ *
69
74
  * @param {string} domain - Domain name.
70
75
  * @param {string} functionId - ID of function to be executed.
71
76
  * @param {string} branch - Name of VCS branch to deploy changes automatically
@@ -77,6 +82,8 @@ export declare class Proxy {
77
82
  /**
78
83
  * Create a new proxy rule for to redirect from custom domain to another domain.
79
84
  *
85
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
86
+ *
80
87
  * @param {string} params.domain - Domain name.
81
88
  * @param {string} params.url - Target URL of redirection
82
89
  * @param {StatusCode} params.statusCode - Status code of redirection
@@ -95,6 +102,8 @@ export declare class Proxy {
95
102
  /**
96
103
  * Create a new proxy rule for to redirect from custom domain to another domain.
97
104
  *
105
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
106
+ *
98
107
  * @param {string} domain - Domain name.
99
108
  * @param {string} url - Target URL of redirection
100
109
  * @param {StatusCode} statusCode - Status code of redirection
@@ -108,6 +117,8 @@ export declare class Proxy {
108
117
  /**
109
118
  * Create a new proxy rule for serving Appwrite Site on custom domain.
110
119
  *
120
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
121
+ *
111
122
  * @param {string} params.domain - Domain name.
112
123
  * @param {string} params.siteId - ID of site to be executed.
113
124
  * @param {string} params.branch - Name of VCS branch to deploy changes automatically
@@ -122,6 +133,8 @@ export declare class Proxy {
122
133
  /**
123
134
  * Create a new proxy rule for serving Appwrite Site on custom domain.
124
135
  *
136
+ * Rule ID is automatically generated as MD5 hash of a rule domain for performance purposes.
137
+ *
125
138
  * @param {string} domain - Domain name.
126
139
  * @param {string} siteId - ID of site to be executed.
127
140
  * @param {string} branch - Name of VCS branch to deploy changes automatically
@@ -169,22 +182,22 @@ export declare class Proxy {
169
182
  */
170
183
  deleteRule(ruleId: string): Promise<{}>;
171
184
  /**
172
- * Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
185
+ * If not succeeded yet, retry verification process of a proxy rule domain. This endpoint triggers domain verification by checking DNS records. If verification is successful, a TLS certificate will be automatically provisioned for the domain asynchronously in the background.
173
186
  *
174
187
  * @param {string} params.ruleId - Rule ID.
175
188
  * @throws {AppwriteException}
176
189
  * @returns {Promise<Models.ProxyRule>}
177
190
  */
178
- updateRuleVerification(params: {
191
+ updateRuleStatus(params: {
179
192
  ruleId: string;
180
193
  }): Promise<Models.ProxyRule>;
181
194
  /**
182
- * Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
195
+ * If not succeeded yet, retry verification process of a proxy rule domain. This endpoint triggers domain verification by checking DNS records. If verification is successful, a TLS certificate will be automatically provisioned for the domain asynchronously in the background.
183
196
  *
184
197
  * @param {string} ruleId - Rule ID.
185
198
  * @throws {AppwriteException}
186
199
  * @returns {Promise<Models.ProxyRule>}
187
200
  * @deprecated Use the object parameter style method for a better developer experience.
188
201
  */
189
- updateRuleVerification(ruleId: string): Promise<Models.ProxyRule>;
202
+ updateRuleStatus(ruleId: string): Promise<Models.ProxyRule>;
190
203
  }
@@ -679,25 +679,32 @@ export declare class Sites {
679
679
  * Get a list of all variables of a specific site.
680
680
  *
681
681
  * @param {string} params.siteId - Site unique ID.
682
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, resourceType, resourceId, secret
683
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
682
684
  * @throws {AppwriteException}
683
685
  * @returns {Promise<Models.VariableList>}
684
686
  */
685
687
  listVariables(params: {
686
688
  siteId: string;
689
+ queries?: string[];
690
+ total?: boolean;
687
691
  }): Promise<Models.VariableList>;
688
692
  /**
689
693
  * Get a list of all variables of a specific site.
690
694
  *
691
695
  * @param {string} siteId - Site unique ID.
696
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, resourceType, resourceId, secret
697
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
692
698
  * @throws {AppwriteException}
693
699
  * @returns {Promise<Models.VariableList>}
694
700
  * @deprecated Use the object parameter style method for a better developer experience.
695
701
  */
696
- listVariables(siteId: string): Promise<Models.VariableList>;
702
+ listVariables(siteId: string, queries?: string[], total?: boolean): Promise<Models.VariableList>;
697
703
  /**
698
704
  * Create a new site variable. These variables can be accessed during build and runtime (server-side rendering) as environment variables.
699
705
  *
700
706
  * @param {string} params.siteId - Site unique ID.
707
+ * @param {string} params.variableId - Variable ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
701
708
  * @param {string} params.key - Variable key. Max length: 255 chars.
702
709
  * @param {string} params.value - Variable value. Max length: 8192 chars.
703
710
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
@@ -706,6 +713,7 @@ export declare class Sites {
706
713
  */
707
714
  createVariable(params: {
708
715
  siteId: string;
716
+ variableId: string;
709
717
  key: string;
710
718
  value: string;
711
719
  secret?: boolean;
@@ -714,6 +722,7 @@ export declare class Sites {
714
722
  * Create a new site variable. These variables can be accessed during build and runtime (server-side rendering) as environment variables.
715
723
  *
716
724
  * @param {string} siteId - Site unique ID.
725
+ * @param {string} variableId - Variable ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
717
726
  * @param {string} key - Variable key. Max length: 255 chars.
718
727
  * @param {string} value - Variable value. Max length: 8192 chars.
719
728
  * @param {boolean} secret - Secret variables can be updated or deleted, but only sites can read them during build and runtime.
@@ -721,7 +730,7 @@ export declare class Sites {
721
730
  * @returns {Promise<Models.Variable>}
722
731
  * @deprecated Use the object parameter style method for a better developer experience.
723
732
  */
724
- createVariable(siteId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
733
+ createVariable(siteId: string, variableId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
725
734
  /**
726
735
  * Get a variable by its unique ID.
727
736
  *
@@ -758,7 +767,7 @@ export declare class Sites {
758
767
  updateVariable(params: {
759
768
  siteId: string;
760
769
  variableId: string;
761
- key: string;
770
+ key?: string;
762
771
  value?: string;
763
772
  secret?: boolean;
764
773
  }): Promise<Models.Variable>;
@@ -774,7 +783,7 @@ export declare class Sites {
774
783
  * @returns {Promise<Models.Variable>}
775
784
  * @deprecated Use the object parameter style method for a better developer experience.
776
785
  */
777
- updateVariable(siteId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
786
+ updateVariable(siteId: string, variableId: string, key?: string, value?: string, secret?: boolean): Promise<Models.Variable>;
778
787
  /**
779
788
  * Delete a variable by its unique ID.
780
789
  *
@@ -442,6 +442,90 @@ export declare class TablesDB {
442
442
  * @deprecated Use the object parameter style method for a better developer experience.
443
443
  */
444
444
  listColumns(databaseId: string, tableId: string, queries?: string[], total?: boolean): Promise<Models.ColumnList>;
445
+ /**
446
+ * Create a bigint column. Optionally, minimum and maximum values can be provided.
447
+ *
448
+ *
449
+ * @param {string} params.databaseId - Database ID.
450
+ * @param {string} params.tableId - Table ID.
451
+ * @param {string} params.key - Column Key.
452
+ * @param {boolean} params.required - Is column required?
453
+ * @param {number | bigint} params.min - Minimum value
454
+ * @param {number | bigint} params.max - Maximum value
455
+ * @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
456
+ * @param {boolean} params.array - Is column an array?
457
+ * @throws {AppwriteException}
458
+ * @returns {Promise<Models.ColumnBigint>}
459
+ */
460
+ createBigIntColumn(params: {
461
+ databaseId: string;
462
+ tableId: string;
463
+ key: string;
464
+ required: boolean;
465
+ min?: number | bigint;
466
+ max?: number | bigint;
467
+ xdefault?: number | bigint;
468
+ array?: boolean;
469
+ }): Promise<Models.ColumnBigint>;
470
+ /**
471
+ * Create a bigint column. Optionally, minimum and maximum values can be provided.
472
+ *
473
+ *
474
+ * @param {string} databaseId - Database ID.
475
+ * @param {string} tableId - Table ID.
476
+ * @param {string} key - Column Key.
477
+ * @param {boolean} required - Is column required?
478
+ * @param {number | bigint} min - Minimum value
479
+ * @param {number | bigint} max - Maximum value
480
+ * @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
481
+ * @param {boolean} array - Is column an array?
482
+ * @throws {AppwriteException}
483
+ * @returns {Promise<Models.ColumnBigint>}
484
+ * @deprecated Use the object parameter style method for a better developer experience.
485
+ */
486
+ createBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnBigint>;
487
+ /**
488
+ * Update a bigint column. Changing the `default` value will not update already existing rows.
489
+ *
490
+ *
491
+ * @param {string} params.databaseId - Database ID.
492
+ * @param {string} params.tableId - Table ID.
493
+ * @param {string} params.key - Column Key.
494
+ * @param {boolean} params.required - Is column required?
495
+ * @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
496
+ * @param {number | bigint} params.min - Minimum value
497
+ * @param {number | bigint} params.max - Maximum value
498
+ * @param {string} params.newKey - New Column Key.
499
+ * @throws {AppwriteException}
500
+ * @returns {Promise<Models.ColumnBigint>}
501
+ */
502
+ updateBigIntColumn(params: {
503
+ databaseId: string;
504
+ tableId: string;
505
+ key: string;
506
+ required: boolean;
507
+ xdefault?: number | bigint;
508
+ min?: number | bigint;
509
+ max?: number | bigint;
510
+ newKey?: string;
511
+ }): Promise<Models.ColumnBigint>;
512
+ /**
513
+ * Update a bigint column. Changing the `default` value will not update already existing rows.
514
+ *
515
+ *
516
+ * @param {string} databaseId - Database ID.
517
+ * @param {string} tableId - Table ID.
518
+ * @param {string} key - Column Key.
519
+ * @param {boolean} required - Is column required?
520
+ * @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
521
+ * @param {number | bigint} min - Minimum value
522
+ * @param {number | bigint} max - Maximum value
523
+ * @param {string} newKey - New Column Key.
524
+ * @throws {AppwriteException}
525
+ * @returns {Promise<Models.ColumnBigint>}
526
+ * @deprecated Use the object parameter style method for a better developer experience.
527
+ */
528
+ updateBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnBigint>;
445
529
  /**
446
530
  * Create a boolean column.
447
531
  *
@@ -108,29 +108,35 @@ export declare class Vcs {
108
108
  */
109
109
  getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
110
110
  /**
111
- * Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
111
+ * Get a list of branches from a GitHub repository in your installation. This endpoint supports filtering by a search term and pagination using query strings such as `Query.limit()`, `Query.offset()`, `Query.cursorAfter()`, and `Query.cursorBefore()`. It returns branch names along with the total number of matches. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
112
112
  *
113
113
  *
114
114
  * @param {string} params.installationId - Installation Id
115
115
  * @param {string} params.providerRepositoryId - Repository Id
116
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
117
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit, offset, cursorAfter, and cursorBefore
116
118
  * @throws {AppwriteException}
117
119
  * @returns {Promise<Models.BranchList>}
118
120
  */
119
121
  listRepositoryBranches(params: {
120
122
  installationId: string;
121
123
  providerRepositoryId: string;
124
+ search?: string;
125
+ queries?: string[];
122
126
  }): Promise<Models.BranchList>;
123
127
  /**
124
- * Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
128
+ * Get a list of branches from a GitHub repository in your installation. This endpoint supports filtering by a search term and pagination using query strings such as `Query.limit()`, `Query.offset()`, `Query.cursorAfter()`, and `Query.cursorBefore()`. It returns branch names along with the total number of matches. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
125
129
  *
126
130
  *
127
131
  * @param {string} installationId - Installation Id
128
132
  * @param {string} providerRepositoryId - Repository Id
133
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
134
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit, offset, cursorAfter, and cursorBefore
129
135
  * @throws {AppwriteException}
130
136
  * @returns {Promise<Models.BranchList>}
131
137
  * @deprecated Use the object parameter style method for a better developer experience.
132
138
  */
133
- listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
139
+ listRepositoryBranches(installationId: string, providerRepositoryId: string, search?: string, queries?: string[]): Promise<Models.BranchList>;
134
140
  /**
135
141
  * Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
136
142
  *