appwrite-cli 19.0.0 → 19.1.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.
- package/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +341 -192
- package/dist/cli.cjs +341 -192
- package/dist/index.cjs +16 -3
- package/dist/index.js +16 -3
- package/dist/lib/commands/services/account.d.ts.map +1 -1
- package/dist/lib/commands/services/backups.d.ts.map +1 -1
- package/dist/lib/commands/services/databases.d.ts.map +1 -1
- package/dist/lib/commands/services/functions.d.ts.map +1 -1
- package/dist/lib/commands/services/messaging.d.ts.map +1 -1
- package/dist/lib/commands/services/migrations.d.ts.map +1 -1
- package/dist/lib/commands/services/organizations.d.ts.map +1 -1
- package/dist/lib/commands/services/project.d.ts.map +1 -1
- package/dist/lib/commands/services/projects.d.ts.map +1 -1
- package/dist/lib/commands/services/proxy.d.ts.map +1 -1
- package/dist/lib/commands/services/sites.d.ts.map +1 -1
- package/dist/lib/commands/services/storage.d.ts.map +1 -1
- package/dist/lib/commands/services/tables-db.d.ts.map +1 -1
- package/dist/lib/commands/services/teams.d.ts.map +1 -1
- package/dist/lib/commands/services/tokens.d.ts.map +1 -1
- package/dist/lib/commands/services/users.d.ts.map +1 -1
- package/dist/lib/commands/services/vcs.d.ts.map +1 -1
- package/dist/lib/commands/services/webhooks.d.ts.map +1 -1
- package/dist/lib/commands/utils/query.d.ts +15 -0
- package/dist/lib/commands/utils/query.d.ts.map +1 -0
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/parser.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -87731,7 +87731,7 @@ var package_default = {
|
|
|
87731
87731
|
type: "module",
|
|
87732
87732
|
homepage: "https://appwrite.io/support",
|
|
87733
87733
|
description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
87734
|
-
version: "19.
|
|
87734
|
+
version: "19.1.0",
|
|
87735
87735
|
license: "BSD-3-Clause",
|
|
87736
87736
|
main: "dist/index.cjs",
|
|
87737
87737
|
module: "dist/index.js",
|
|
@@ -87801,7 +87801,8 @@ var package_default = {
|
|
|
87801
87801
|
},
|
|
87802
87802
|
overrides: {
|
|
87803
87803
|
phin: "3.7.1",
|
|
87804
|
-
"@xmldom/xmldom": "^0.9.10"
|
|
87804
|
+
"@xmldom/xmldom": "^0.9.10",
|
|
87805
|
+
tmp: "0.2.5"
|
|
87805
87806
|
},
|
|
87806
87807
|
devDependencies: {
|
|
87807
87808
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -102041,7 +102042,7 @@ import childProcess from "child_process";
|
|
|
102041
102042
|
// lib/constants.ts
|
|
102042
102043
|
var SDK_TITLE = "Appwrite";
|
|
102043
102044
|
var SDK_TITLE_LOWER = "appwrite";
|
|
102044
|
-
var SDK_VERSION = "19.
|
|
102045
|
+
var SDK_VERSION = "19.1.0";
|
|
102045
102046
|
var SDK_NAME = "Command Line";
|
|
102046
102047
|
var SDK_PLATFORM = "console";
|
|
102047
102048
|
var SDK_LANGUAGE = "cli";
|
|
@@ -129706,6 +129707,15 @@ var drawTable = (data, options = {}) => {
|
|
|
129706
129707
|
var drawJSON = (data) => {
|
|
129707
129708
|
console.log(JSON.stringify(data, null, 2));
|
|
129708
129709
|
};
|
|
129710
|
+
var isQueryError = (message) => /Invalid query(?: method)?/i.test(message) || /query[^.:\n]*syntax error|syntax error[^.:\n]*query/i.test(message);
|
|
129711
|
+
var printQueryErrorHint = (err) => {
|
|
129712
|
+
if (!isQueryError(err.message)) {
|
|
129713
|
+
return;
|
|
129714
|
+
}
|
|
129715
|
+
hint(
|
|
129716
|
+
`For common list filters, use flags like --limit 25, --sort-desc '$createdAt', or --where 'status=active'. Raw --queries values must be Appwrite JSON query strings, for example: ${EXECUTABLE_NAME} tables-db list-rows --queries '{"method":"limit","values":[25]}'`
|
|
129717
|
+
);
|
|
129718
|
+
};
|
|
129709
129719
|
var parseError = (err) => {
|
|
129710
129720
|
if (cliConfig.report) {
|
|
129711
129721
|
void (async () => {
|
|
@@ -129754,6 +129764,7 @@ ${stack}`
|
|
|
129754
129764
|
${githubIssueUrl.href}
|
|
129755
129765
|
`
|
|
129756
129766
|
);
|
|
129767
|
+
printQueryErrorHint(err);
|
|
129757
129768
|
error48("\n Stack Trace: \n");
|
|
129758
129769
|
console.error(err);
|
|
129759
129770
|
process.exit(1);
|
|
@@ -129761,9 +129772,11 @@ ${stack}`
|
|
|
129761
129772
|
} else {
|
|
129762
129773
|
if (cliConfig.verbose) {
|
|
129763
129774
|
console.error(err);
|
|
129775
|
+
printQueryErrorHint(err);
|
|
129764
129776
|
} else {
|
|
129765
129777
|
log("For detailed error pass the --verbose or --report flag");
|
|
129766
129778
|
error48(err.message);
|
|
129779
|
+
printQueryErrorHint(err);
|
|
129767
129780
|
}
|
|
129768
129781
|
process.exit(1);
|
|
129769
129782
|
}
|
|
@@ -144713,6 +144726,142 @@ Example:
|
|
|
144713
144726
|
await mydb.use("tableName").create({ ... });`
|
|
144714
144727
|
).action(actionRunner(generateAction));
|
|
144715
144728
|
|
|
144729
|
+
// lib/commands/utils/query.ts
|
|
144730
|
+
var stringifyQuery = (method, attribute, values) => {
|
|
144731
|
+
const query = { method };
|
|
144732
|
+
if (attribute !== void 0) {
|
|
144733
|
+
query.attribute = attribute;
|
|
144734
|
+
}
|
|
144735
|
+
if (values !== void 0) {
|
|
144736
|
+
query.values = Array.isArray(values) ? values : [values];
|
|
144737
|
+
}
|
|
144738
|
+
return JSON.stringify(query);
|
|
144739
|
+
};
|
|
144740
|
+
var parseQueryValue = (value) => {
|
|
144741
|
+
const normalized = value.trim();
|
|
144742
|
+
if (normalized === "true") {
|
|
144743
|
+
return true;
|
|
144744
|
+
}
|
|
144745
|
+
if (normalized === "false") {
|
|
144746
|
+
return false;
|
|
144747
|
+
}
|
|
144748
|
+
if (normalized === "null") {
|
|
144749
|
+
return null;
|
|
144750
|
+
}
|
|
144751
|
+
if (/^-?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?$/i.test(normalized)) {
|
|
144752
|
+
const parsed = Number(normalized);
|
|
144753
|
+
if (!Number.isFinite(parsed)) {
|
|
144754
|
+
throw new InvalidArgumentError(
|
|
144755
|
+
"Numeric filter values must be finite numbers."
|
|
144756
|
+
);
|
|
144757
|
+
}
|
|
144758
|
+
return parsed;
|
|
144759
|
+
}
|
|
144760
|
+
if (normalized.startsWith("[") && normalized.endsWith("]")) {
|
|
144761
|
+
try {
|
|
144762
|
+
const parsed = JSON.parse(normalized);
|
|
144763
|
+
if (Array.isArray(parsed)) {
|
|
144764
|
+
return parsed.map((item) => {
|
|
144765
|
+
if (item === null || typeof item === "string" || typeof item === "boolean") {
|
|
144766
|
+
return item;
|
|
144767
|
+
}
|
|
144768
|
+
if (typeof item === "number") {
|
|
144769
|
+
if (!Number.isFinite(item)) {
|
|
144770
|
+
throw new InvalidArgumentError(
|
|
144771
|
+
"Array filter values must be finite numbers."
|
|
144772
|
+
);
|
|
144773
|
+
}
|
|
144774
|
+
return item;
|
|
144775
|
+
}
|
|
144776
|
+
throw new InvalidArgumentError(
|
|
144777
|
+
"Array filters can only contain strings, numbers, booleans, or null."
|
|
144778
|
+
);
|
|
144779
|
+
});
|
|
144780
|
+
}
|
|
144781
|
+
} catch (error49) {
|
|
144782
|
+
if (error49 instanceof InvalidArgumentError) {
|
|
144783
|
+
throw error49;
|
|
144784
|
+
}
|
|
144785
|
+
throw new InvalidArgumentError(
|
|
144786
|
+
"Array filter values must be valid JSON arrays."
|
|
144787
|
+
);
|
|
144788
|
+
}
|
|
144789
|
+
}
|
|
144790
|
+
return normalized;
|
|
144791
|
+
};
|
|
144792
|
+
var whereOperators = [
|
|
144793
|
+
[/^(.+?)\s*!=\s*(.*)$/, "notEqual"],
|
|
144794
|
+
[/^(.+?)\s*>=\s*(.*)$/, "greaterThanEqual"],
|
|
144795
|
+
[/^(.+?)\s*<=\s*(.*)$/, "lessThanEqual"],
|
|
144796
|
+
[/^(.+?)\s*=\s*(.*)$/, "equal"],
|
|
144797
|
+
[/^(.+?)\s*>\s*(.*)$/, "greaterThan"],
|
|
144798
|
+
[/^(.+?)\s*<\s*(.*)$/, "lessThan"]
|
|
144799
|
+
];
|
|
144800
|
+
var collectQueryValue = (value, previous = []) => [
|
|
144801
|
+
...previous,
|
|
144802
|
+
value
|
|
144803
|
+
];
|
|
144804
|
+
var parseWhereQuery = (expression) => {
|
|
144805
|
+
for (const [pattern, method] of whereOperators) {
|
|
144806
|
+
const match = expression.match(pattern);
|
|
144807
|
+
if (!match) {
|
|
144808
|
+
continue;
|
|
144809
|
+
}
|
|
144810
|
+
const attribute = match[1].trim();
|
|
144811
|
+
if (attribute === "") {
|
|
144812
|
+
throw new InvalidArgumentError(
|
|
144813
|
+
"Where filters must include an attribute before the operator."
|
|
144814
|
+
);
|
|
144815
|
+
}
|
|
144816
|
+
return stringifyQuery(method, attribute, parseQueryValue(match[2]));
|
|
144817
|
+
}
|
|
144818
|
+
throw new InvalidArgumentError(
|
|
144819
|
+
"Where filters must use one of: field=value, field!=value, field>value, field>=value, field<value, field<=value."
|
|
144820
|
+
);
|
|
144821
|
+
};
|
|
144822
|
+
var buildQueries = ({
|
|
144823
|
+
queries,
|
|
144824
|
+
limit,
|
|
144825
|
+
offset,
|
|
144826
|
+
cursorAfter,
|
|
144827
|
+
cursorBefore,
|
|
144828
|
+
sortAsc,
|
|
144829
|
+
sortDesc,
|
|
144830
|
+
select,
|
|
144831
|
+
where
|
|
144832
|
+
}) => {
|
|
144833
|
+
const builtQueries = [...queries ?? []];
|
|
144834
|
+
if (where) {
|
|
144835
|
+
builtQueries.push(...where);
|
|
144836
|
+
}
|
|
144837
|
+
if (sortAsc) {
|
|
144838
|
+
builtQueries.push(
|
|
144839
|
+
...sortAsc.map((attribute) => stringifyQuery("orderAsc", attribute))
|
|
144840
|
+
);
|
|
144841
|
+
}
|
|
144842
|
+
if (sortDesc) {
|
|
144843
|
+
builtQueries.push(
|
|
144844
|
+
...sortDesc.map((attribute) => stringifyQuery("orderDesc", attribute))
|
|
144845
|
+
);
|
|
144846
|
+
}
|
|
144847
|
+
if (limit !== void 0) {
|
|
144848
|
+
builtQueries.push(stringifyQuery("limit", void 0, limit));
|
|
144849
|
+
}
|
|
144850
|
+
if (offset !== void 0) {
|
|
144851
|
+
builtQueries.push(stringifyQuery("offset", void 0, offset));
|
|
144852
|
+
}
|
|
144853
|
+
if (cursorAfter !== void 0) {
|
|
144854
|
+
builtQueries.push(stringifyQuery("cursorAfter", void 0, cursorAfter));
|
|
144855
|
+
}
|
|
144856
|
+
if (cursorBefore !== void 0) {
|
|
144857
|
+
builtQueries.push(stringifyQuery("cursorBefore", void 0, cursorBefore));
|
|
144858
|
+
}
|
|
144859
|
+
if (select && select.length > 0) {
|
|
144860
|
+
builtQueries.push(stringifyQuery("select", void 0, select));
|
|
144861
|
+
}
|
|
144862
|
+
return builtQueries.length > 0 ? builtQueries : void 0;
|
|
144863
|
+
};
|
|
144864
|
+
|
|
144716
144865
|
// lib/commands/services/account.ts
|
|
144717
144866
|
var accountClient = null;
|
|
144718
144867
|
var getAccountClient = async () => {
|
|
@@ -144747,13 +144896,13 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
144747
144896
|
async ({ email: email3, password }) => parse3(await (await getAccountClient()).updateEmail(email3, password))
|
|
144748
144897
|
)
|
|
144749
144898
|
);
|
|
144750
|
-
var accountListIdentitiesCommand = account.command(`list-identities`).description(`Get the list of identities for the currently logged in user.`).option(`--queries [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: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry`).option(
|
|
144899
|
+
var accountListIdentitiesCommand = account.command(`list-identities`).description(`Get the list of identities for the currently logged in user.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry`).option(
|
|
144751
144900
|
`--total [value]`,
|
|
144752
144901
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
144753
144902
|
(value) => value === void 0 ? true : parseBool(value)
|
|
144754
|
-
).action(
|
|
144903
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
144755
144904
|
actionRunner(
|
|
144756
|
-
async ({ queries, total }) => parse3(await (await getAccountClient()).listIdentities(queries, total))
|
|
144905
|
+
async ({ queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getAccountClient()).listIdentities(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
144757
144906
|
)
|
|
144758
144907
|
);
|
|
144759
144908
|
var accountDeleteIdentityCommand = account.command(`delete-identity`).description(`Delete an identity by its unique ID.`).requiredOption(`--identity-id <identity-id>`, `Identity ID.`).action(
|
|
@@ -144795,13 +144944,13 @@ var accountDeleteKeyCommand = account.command(`delete-key`).description(`Delete
|
|
|
144795
144944
|
async ({ keyId }) => parse3(await (await getAccountClient()).deleteKey(keyId))
|
|
144796
144945
|
)
|
|
144797
144946
|
);
|
|
144798
|
-
var accountListLogsCommand = account.command(`list-logs`).description(`Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.`).option(`--queries [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 and offset`).option(
|
|
144947
|
+
var accountListLogsCommand = account.command(`list-logs`).description(`Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
144799
144948
|
`--total [value]`,
|
|
144800
144949
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
144801
144950
|
(value) => value === void 0 ? true : parseBool(value)
|
|
144802
|
-
).action(
|
|
144951
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
144803
144952
|
actionRunner(
|
|
144804
|
-
async ({ queries, total }) => parse3(await (await getAccountClient()).listLogs(queries, total))
|
|
144953
|
+
async ({ queries, total, limit, offset }) => parse3(await (await getAccountClient()).listLogs(buildQueries({ queries, limit, offset }), total))
|
|
144805
144954
|
)
|
|
144806
144955
|
);
|
|
144807
144956
|
var accountUpdateMFACommand = account.command(`update-mfa`).description(`Enable or disable MFA on an account.`).requiredOption(`--mfa <mfa>`, `Enable or disable MFA.`, parseBool).action(
|
|
@@ -145092,9 +145241,9 @@ var getBackupsClient = async () => {
|
|
|
145092
145241
|
var backups = new Command("backups").description(commandDescriptions["backups"] ?? "").configureHelp({
|
|
145093
145242
|
helpWidth: process.stdout.columns || 80
|
|
145094
145243
|
});
|
|
145095
|
-
var backupsListArchivesCommand = backups.command(`list-archives`).description(`List all archives for a project.`).option(`--queries [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.`).action(
|
|
145244
|
+
var backupsListArchivesCommand = backups.command(`list-archives`).description(`List all archives for a project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145096
145245
|
actionRunner(
|
|
145097
|
-
async ({ queries }) => parse3(await (await getBackupsClient()).listArchives(queries))
|
|
145246
|
+
async ({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getBackupsClient()).listArchives(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
145098
145247
|
)
|
|
145099
145248
|
);
|
|
145100
145249
|
var backupsCreateArchiveCommand = backups.command(`create-archive`).description(`Create a new archive asynchronously for a project.`).requiredOption(`--services [services...]`, `Array of services to backup`).option(`--resource-id <resource-id>`, `Resource ID. When set, only this single resource will be backed up.`).action(
|
|
@@ -145112,9 +145261,9 @@ var backupsDeleteArchiveCommand = backups.command(`delete-archive`).description(
|
|
|
145112
145261
|
async ({ archiveId }) => parse3(await (await getBackupsClient()).deleteArchive(archiveId))
|
|
145113
145262
|
)
|
|
145114
145263
|
);
|
|
145115
|
-
var backupsListPoliciesCommand = backups.command(`list-policies`).description(`List all policies for a project.`).option(`--queries [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.`).action(
|
|
145264
|
+
var backupsListPoliciesCommand = backups.command(`list-policies`).description(`List all policies for a project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145116
145265
|
actionRunner(
|
|
145117
|
-
async ({ queries }) => parse3(await (await getBackupsClient()).listPolicies(queries))
|
|
145266
|
+
async ({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getBackupsClient()).listPolicies(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
145118
145267
|
)
|
|
145119
145268
|
);
|
|
145120
145269
|
var backupsCreatePolicyCommand = backups.command(`create-policy`).description(`Create a new backup policy.`).requiredOption(`--policy-id <policy-id>`, `Policy 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.`).requiredOption(`--services [services...]`, `Array of services to backup`).requiredOption(`--retention <retention>`, `Days to keep backups before deletion`, parseInteger).requiredOption(`--schedule <schedule>`, `Schedule CRON syntax.`).option(`--name <name>`, `Policy name. Max length: 128 chars.`).option(`--resource-id <resource-id>`, `Resource ID. When set, only this single resource will be backed up.`).option(
|
|
@@ -145150,9 +145299,9 @@ var backupsCreateRestorationCommand = backups.command(`create-restoration`).desc
|
|
|
145150
145299
|
async ({ archiveId, services, newResourceId, newResourceName }) => parse3(await (await getBackupsClient()).createRestoration(archiveId, services, newResourceId, newResourceName))
|
|
145151
145300
|
)
|
|
145152
145301
|
);
|
|
145153
|
-
var backupsListRestorationsCommand = backups.command(`list-restorations`).description(`List all backup restorations for a project.`).option(`--queries [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.`).action(
|
|
145302
|
+
var backupsListRestorationsCommand = backups.command(`list-restorations`).description(`List all backup restorations for a project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145154
145303
|
actionRunner(
|
|
145155
|
-
async ({ queries }) => parse3(await (await getBackupsClient()).listRestorations(queries))
|
|
145304
|
+
async ({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getBackupsClient()).listRestorations(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
145156
145305
|
)
|
|
145157
145306
|
);
|
|
145158
145307
|
var backupsGetRestorationCommand = backups.command(`get-restoration`).description(`Get the current status of a backup restoration.`).requiredOption(`--restoration-id <restoration-id>`, `Restoration ID. Choose a custom ID\`. 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.`).action(
|
|
@@ -145173,13 +145322,13 @@ var getDatabasesClient = async () => {
|
|
|
145173
145322
|
var databases = new Command("databases").description(commandDescriptions["databases"] ?? "").configureHelp({
|
|
145174
145323
|
helpWidth: process.stdout.columns || 80
|
|
145175
145324
|
});
|
|
145176
|
-
var databasesListCommand = databases.command(`list`).description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`).option(`--queries [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: name`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145325
|
+
var databasesListCommand = databases.command(`list`).description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145177
145326
|
`--total [value]`,
|
|
145178
145327
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145179
145328
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145180
|
-
).action(
|
|
145329
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145181
145330
|
actionRunner(
|
|
145182
|
-
async ({ queries, search, total }) => parse3(await (await getDatabasesClient()).list(queries, search, total))
|
|
145331
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
145183
145332
|
)
|
|
145184
145333
|
);
|
|
145185
145334
|
var databasesCreateCommand = databases.command(`create`).description(`Create a new Database.
|
|
@@ -145192,9 +145341,9 @@ var databasesCreateCommand = databases.command(`create`).description(`Create a n
|
|
|
145192
145341
|
async ({ databaseId, name, enabled }) => parse3(await (await getDatabasesClient()).create(databaseId, name, enabled))
|
|
145193
145342
|
)
|
|
145194
145343
|
);
|
|
145195
|
-
var databasesListTransactionsCommand = databases.command(`list-transactions`).description(`List transactions across all databases.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. Learn more about queries (https://appwrite.io/docs/queries).`).action(
|
|
145344
|
+
var databasesListTransactionsCommand = databases.command(`list-transactions`).description(`List transactions across all databases.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag queries. Array of query strings generated using the Query class provided by the SDK. Learn more about queries (https://appwrite.io/docs/queries).`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145196
145345
|
actionRunner(
|
|
145197
|
-
async ({ queries }) => parse3(await (await getDatabasesClient()).listTransactions(queries))
|
|
145346
|
+
async ({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).listTransactions(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
145198
145347
|
)
|
|
145199
145348
|
);
|
|
145200
145349
|
var databasesCreateTransactionCommand = databases.command(`create-transaction`).description(`Create a new transaction.`).option(`--ttl <ttl>`, `Seconds before the transaction expires.`, parseInteger).action(
|
|
@@ -145254,13 +145403,13 @@ var databasesDeleteCommand = databases.command(`delete`).description(`Delete a d
|
|
|
145254
145403
|
async ({ databaseId }) => parse3(await (await getDatabasesClient()).delete(databaseId))
|
|
145255
145404
|
)
|
|
145256
145405
|
);
|
|
145257
|
-
var databasesListCollectionsCommand = databases.command(`list-collections`).description(`Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [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: name, enabled, documentSecurity`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145406
|
+
var databasesListCollectionsCommand = databases.command(`list-collections`).description(`Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, enabled, documentSecurity`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145258
145407
|
`--total [value]`,
|
|
145259
145408
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145260
145409
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145261
|
-
).action(
|
|
145410
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145262
145411
|
actionRunner(
|
|
145263
|
-
async ({ databaseId, queries, search, total }) => parse3(await (await getDatabasesClient()).listCollections(databaseId, queries, search, total))
|
|
145412
|
+
async ({ databaseId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).listCollections(databaseId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
145264
145413
|
)
|
|
145265
145414
|
);
|
|
145266
145415
|
var databasesCreateCollectionCommand = databases.command(`create-collection`).description(`Create a new Collection. Before using this route, you should create a new database resource using either a server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Unique 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.`).requiredOption(`--name <name>`, `Collection name. Max length: 128 chars.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, no user is granted with any permissions. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(
|
|
@@ -145303,13 +145452,13 @@ var databasesDeleteCollectionCommand = databases.command(`delete-collection`).de
|
|
|
145303
145452
|
async ({ databaseId, collectionId }) => parse3(await (await getDatabasesClient()).deleteCollection(databaseId, collectionId))
|
|
145304
145453
|
)
|
|
145305
145454
|
);
|
|
145306
|
-
var databasesListAttributesCommand = databases.command(`list-attributes`).description(`List attributes in the collection.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--queries [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, type, size, required, array, status, error`).option(
|
|
145455
|
+
var databasesListAttributesCommand = databases.command(`list-attributes`).description(`List attributes in the collection.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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, type, size, required, array, status, error`).option(
|
|
145307
145456
|
`--total [value]`,
|
|
145308
145457
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145309
145458
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145310
|
-
).action(
|
|
145459
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145311
145460
|
actionRunner(
|
|
145312
|
-
async ({ databaseId, collectionId, queries, total }) => parse3(await (await getDatabasesClient()).listAttributes(databaseId, collectionId, queries, total))
|
|
145461
|
+
async ({ databaseId, collectionId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).listAttributes(databaseId, collectionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
145313
145462
|
)
|
|
145314
145463
|
);
|
|
145315
145464
|
var databasesCreateBooleanAttributeCommand = databases.command(`create-boolean-attribute`).description(`Create a boolean attribute.
|
|
@@ -145597,13 +145746,13 @@ var databasesDeleteAttributeCommand = databases.command(`delete-attribute`).desc
|
|
|
145597
145746
|
async ({ databaseId, collectionId, key }) => parse3(await (await getDatabasesClient()).deleteAttribute(databaseId, collectionId, key))
|
|
145598
145747
|
)
|
|
145599
145748
|
);
|
|
145600
|
-
var databasesListDocumentsCommand = databases.command(`list-documents`).description(`Get a list of all the user's documents in a given collection. You can use the query params to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(
|
|
145749
|
+
var databasesListDocumentsCommand = databases.command(`list-documents`).description(`Get a list of all the user's documents in a given collection. You can use the query params to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, pagination, and selection prefer --where, --sort-asc, --sort-desc, --limit, --offset, and --select. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(
|
|
145601
145750
|
`--total [value]`,
|
|
145602
145751
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145603
145752
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145604
|
-
).option(`--ttl <ttl>`, `TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query \u2014 so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).`, parseInteger).action(
|
|
145753
|
+
).option(`--ttl <ttl>`, `TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query \u2014 so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).`, parseInteger).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).option(`--select <attribute>`, `Attribute to include in the response. Repeat for multiple attributes.`, (value, previous) => collectQueryValue(value, previous)).action(
|
|
145605
145754
|
actionRunner(
|
|
145606
|
-
async ({ databaseId, collectionId, queries, transactionId, total, ttl }) => parse3(await (await getDatabasesClient()).listDocuments(databaseId, collectionId, queries, transactionId, total, ttl))
|
|
145755
|
+
async ({ databaseId, collectionId, queries, transactionId, total, ttl, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset, select }) => parse3(await (await getDatabasesClient()).listDocuments(databaseId, collectionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset, select }), transactionId, total, ttl))
|
|
145607
145756
|
)
|
|
145608
145757
|
);
|
|
145609
145758
|
var databasesCreateDocumentCommand = databases.command(`create-document`).description(`Create a new Document. Before using this route, you should create a new collection resource using either a server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.`).requiredOption(`--document-id <document-id>`, `Document 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.`).requiredOption(`--data <data>`, `Document data as JSON object.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, only the current user is granted all permissions. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -145622,19 +145771,19 @@ var databasesUpsertDocumentsCommand = databases.command(`upsert-documents`).desc
|
|
|
145622
145771
|
async ({ databaseId, collectionId, documents, transactionId }) => parse3(await (await getDatabasesClient()).upsertDocuments(databaseId, collectionId, documents, transactionId))
|
|
145623
145772
|
)
|
|
145624
145773
|
);
|
|
145625
|
-
var databasesUpdateDocumentsCommand = databases.command(`update-documents`).description(`Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--data <data>`, `Document data as JSON object. Include only attribute and value pairs to be updated.`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
145774
|
+
var databasesUpdateDocumentsCommand = databases.command(`update-documents`).description(`Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--data <data>`, `Document data as JSON object. Include only attribute and value pairs to be updated.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145626
145775
|
actionRunner(
|
|
145627
|
-
async ({ databaseId, collectionId, data, queries, transactionId }) => parse3(await (await getDatabasesClient()).updateDocuments(databaseId, collectionId, JSON.parse(data), queries, transactionId))
|
|
145776
|
+
async ({ databaseId, collectionId, data, queries, transactionId, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).updateDocuments(databaseId, collectionId, JSON.parse(data), buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), transactionId))
|
|
145628
145777
|
)
|
|
145629
145778
|
);
|
|
145630
|
-
var databasesDeleteDocumentsCommand = databases.command(`delete-documents`).description(`Bulk delete documents using queries, if no queries are passed then all documents are deleted.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
145779
|
+
var databasesDeleteDocumentsCommand = databases.command(`delete-documents`).description(`Bulk delete documents using queries, if no queries are passed then all documents are deleted.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145631
145780
|
actionRunner(
|
|
145632
|
-
async ({ databaseId, collectionId, queries, transactionId }) => parse3(await (await getDatabasesClient()).deleteDocuments(databaseId, collectionId, queries, transactionId))
|
|
145781
|
+
async ({ databaseId, collectionId, queries, transactionId, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).deleteDocuments(databaseId, collectionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), transactionId))
|
|
145633
145782
|
)
|
|
145634
145783
|
);
|
|
145635
|
-
var databasesGetDocumentCommand = databases.command(`get-document`).description(`Get a document by its unique ID. This endpoint response returns a JSON object with the document data.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).requiredOption(`--document-id <document-id>`, `Document ID.`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).action(
|
|
145784
|
+
var databasesGetDocumentCommand = databases.command(`get-document`).description(`Get a document by its unique ID. This endpoint response returns a JSON object with the document data.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).requiredOption(`--document-id <document-id>`, `Document ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for selecting returned attributes prefer --select. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(`--select <attribute>`, `Attribute to include in the response. Repeat for multiple attributes.`, (value, previous) => collectQueryValue(value, previous)).action(
|
|
145636
145785
|
actionRunner(
|
|
145637
|
-
async ({ databaseId, collectionId, documentId, queries, transactionId }) => parse3(await (await getDatabasesClient()).getDocument(databaseId, collectionId, documentId, queries, transactionId))
|
|
145786
|
+
async ({ databaseId, collectionId, documentId, queries, transactionId, select }) => parse3(await (await getDatabasesClient()).getDocument(databaseId, collectionId, documentId, buildQueries({ queries, select }), transactionId))
|
|
145638
145787
|
)
|
|
145639
145788
|
);
|
|
145640
145789
|
var databasesUpsertDocumentCommand = databases.command(`upsert-document`).description(`Create or update a Document. Before using this route, you should create a new collection resource using either a server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).requiredOption(`--document-id <document-id>`, `Document ID.`).option(`--data <data>`, `Document data as JSON object. Include all required attributes of the document to be created or updated.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, the current permissions are inherited. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -145652,9 +145801,9 @@ var databasesDeleteDocumentCommand = databases.command(`delete-document`).descri
|
|
|
145652
145801
|
async ({ databaseId, collectionId, documentId, transactionId }) => parse3(await (await getDatabasesClient()).deleteDocument(databaseId, collectionId, documentId, transactionId))
|
|
145653
145802
|
)
|
|
145654
145803
|
);
|
|
145655
|
-
var databasesListDocumentLogsCommand = databases.command(`list-document-logs`).description(`Get the document activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).requiredOption(`--document-id <document-id>`, `Document ID.`).option(`--queries [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 and offset`).action(
|
|
145804
|
+
var databasesListDocumentLogsCommand = databases.command(`list-document-logs`).description(`Get the document activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).requiredOption(`--document-id <document-id>`, `Document ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
145656
145805
|
actionRunner(
|
|
145657
|
-
async ({ databaseId, collectionId, documentId, queries }) => parse3(await (await getDatabasesClient()).listDocumentLogs(databaseId, collectionId, documentId, queries))
|
|
145806
|
+
async ({ databaseId, collectionId, documentId, queries, limit, offset }) => parse3(await (await getDatabasesClient()).listDocumentLogs(databaseId, collectionId, documentId, buildQueries({ queries, limit, offset })))
|
|
145658
145807
|
)
|
|
145659
145808
|
);
|
|
145660
145809
|
var databasesDecrementDocumentAttributeCommand = databases.command(`decrement-document-attribute`).description(`Decrement a specific attribute of a document by a given value.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).requiredOption(`--document-id <document-id>`, `Document ID.`).requiredOption(`--attribute <attribute>`, `Attribute key.`).option(`--value <value>`, `Value to increment the attribute by. The value must be a number.`, parseInteger).option(`--min <min>`, `Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.`, parseInteger).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -145667,13 +145816,13 @@ var databasesIncrementDocumentAttributeCommand = databases.command(`increment-do
|
|
|
145667
145816
|
async ({ databaseId, collectionId, documentId, attribute, value, max, transactionId }) => parse3(await (await getDatabasesClient()).incrementDocumentAttribute(databaseId, collectionId, documentId, attribute, value, max, transactionId))
|
|
145668
145817
|
)
|
|
145669
145818
|
);
|
|
145670
|
-
var databasesListIndexesCommand = databases.command(`list-indexes`).description(`List indexes in the collection.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [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, type, status, attributes, error`).option(
|
|
145819
|
+
var databasesListIndexesCommand = databases.command(`list-indexes`).description(`List indexes in the collection.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service server integration (https://appwrite.io/docs/server/databases#databasesCreateCollection).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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, type, status, attributes, error`).option(
|
|
145671
145820
|
`--total [value]`,
|
|
145672
145821
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145673
145822
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145674
|
-
).action(
|
|
145823
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145675
145824
|
actionRunner(
|
|
145676
|
-
async ({ databaseId, collectionId, queries, total }) => parse3(await (await getDatabasesClient()).listIndexes(databaseId, collectionId, queries, total))
|
|
145825
|
+
async ({ databaseId, collectionId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getDatabasesClient()).listIndexes(databaseId, collectionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
145677
145826
|
)
|
|
145678
145827
|
);
|
|
145679
145828
|
var databasesCreateIndexCommand = databases.command(`create-index`).description(`Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
|
|
@@ -145692,9 +145841,9 @@ var databasesDeleteIndexCommand = databases.command(`delete-index`).description(
|
|
|
145692
145841
|
async ({ databaseId, collectionId, key }) => parse3(await (await getDatabasesClient()).deleteIndex(databaseId, collectionId, key))
|
|
145693
145842
|
)
|
|
145694
145843
|
);
|
|
145695
|
-
var databasesListCollectionLogsCommand = databases.command(`list-collection-logs`).description(`Get the collection activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--queries [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 and offset`).action(
|
|
145844
|
+
var databasesListCollectionLogsCommand = databases.command(`list-collection-logs`).description(`Get the collection activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
145696
145845
|
actionRunner(
|
|
145697
|
-
async ({ databaseId, collectionId, queries }) => parse3(await (await getDatabasesClient()).listCollectionLogs(databaseId, collectionId, queries))
|
|
145846
|
+
async ({ databaseId, collectionId, queries, limit, offset }) => parse3(await (await getDatabasesClient()).listCollectionLogs(databaseId, collectionId, buildQueries({ queries, limit, offset })))
|
|
145698
145847
|
)
|
|
145699
145848
|
);
|
|
145700
145849
|
var databasesGetCollectionUsageCommand = databases.command(`get-collection-usage`).description(`Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--collection-id <collection-id>`, `Collection ID.`).option(`--range <range>`, `Date range.`).action(
|
|
@@ -145702,9 +145851,9 @@ var databasesGetCollectionUsageCommand = databases.command(`get-collection-usage
|
|
|
145702
145851
|
async ({ databaseId, collectionId, range }) => parse3(await (await getDatabasesClient()).getCollectionUsage(databaseId, collectionId, range))
|
|
145703
145852
|
)
|
|
145704
145853
|
);
|
|
145705
|
-
var databasesListLogsCommand = databases.command(`list-logs`).description(`Get the database activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [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 and offset`).action(
|
|
145854
|
+
var databasesListLogsCommand = databases.command(`list-logs`).description(`Get the database activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
145706
145855
|
actionRunner(
|
|
145707
|
-
async ({ databaseId, queries }) => parse3(await (await getDatabasesClient()).listLogs(databaseId, queries))
|
|
145856
|
+
async ({ databaseId, queries, limit, offset }) => parse3(await (await getDatabasesClient()).listLogs(databaseId, buildQueries({ queries, limit, offset })))
|
|
145708
145857
|
)
|
|
145709
145858
|
);
|
|
145710
145859
|
var databasesGetUsageCommand = databases.command(`get-usage`).description(`Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--range <range>`, `Date range.`).action(
|
|
@@ -145726,13 +145875,13 @@ var getFunctionsClient = async () => {
|
|
|
145726
145875
|
var functions = new Command("functions").description(commandDescriptions["functions"] ?? "").configureHelp({
|
|
145727
145876
|
helpWidth: process.stdout.columns || 80
|
|
145728
145877
|
});
|
|
145729
|
-
var functionsListCommand = functions.command(`list`).description(`Get a list of all the project's functions. You can use the query params to filter your results.`).option(`--queries [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: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145878
|
+
var functionsListCommand = functions.command(`list`).description(`Get a list of all the project's functions. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145730
145879
|
`--total [value]`,
|
|
145731
145880
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145732
145881
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145733
|
-
).action(
|
|
145882
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145734
145883
|
actionRunner(
|
|
145735
|
-
async ({ queries, search, total }) => parse3(await (await getFunctionsClient()).list(queries, search, total))
|
|
145884
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getFunctionsClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
145736
145885
|
)
|
|
145737
145886
|
);
|
|
145738
145887
|
var functionsCreateCommand = functions.command(`create`).description(`Create a new function. You can pass a list of permissions (https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.`).requiredOption(`--function-id <function-id>`, `Function 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.`).requiredOption(`--name <name>`, `Function name. Max length: 128 chars.`).requiredOption(`--runtime <runtime>`, `Execution runtime.`).option(`--execute [execute...]`, `An array of role strings with execution permissions. By default no user is granted with any execute permissions. learn more about roles (https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.`).option(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).option(`--schedule <schedule>`, `Schedule CRON syntax.`).option(`--timeout <timeout>`, `Function maximum execution time in seconds.`, parseInteger).option(
|
|
@@ -145813,13 +145962,13 @@ var functionsUpdateFunctionDeploymentCommand = functions.command(`update-functio
|
|
|
145813
145962
|
async ({ functionId, deploymentId }) => parse3(await (await getFunctionsClient()).updateFunctionDeployment(functionId, deploymentId))
|
|
145814
145963
|
)
|
|
145815
145964
|
);
|
|
145816
|
-
var functionsListDeploymentsCommand = functions.command(`list-deployments`).description(`Get a list of all the function's code deployments. You can use the query params to filter your results.`).requiredOption(`--function-id <function-id>`, `Function ID.`).option(`--queries [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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145965
|
+
var functionsListDeploymentsCommand = functions.command(`list-deployments`).description(`Get a list of all the function's code deployments. You can use the query params to filter your results.`).requiredOption(`--function-id <function-id>`, `Function ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
145817
145966
|
`--total [value]`,
|
|
145818
145967
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145819
145968
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145820
|
-
).action(
|
|
145969
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145821
145970
|
actionRunner(
|
|
145822
|
-
async ({ functionId, queries, search, total }) => parse3(await (await getFunctionsClient()).listDeployments(functionId, queries, search, total))
|
|
145971
|
+
async ({ functionId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getFunctionsClient()).listDeployments(functionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
145823
145972
|
)
|
|
145824
145973
|
);
|
|
145825
145974
|
var functionsCreateDeploymentCommand = functions.command(`create-deployment`).description(`Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
@@ -145884,13 +146033,13 @@ var functionsUpdateDeploymentStatusCommand = functions.command(`update-deploymen
|
|
|
145884
146033
|
async ({ functionId, deploymentId }) => parse3(await (await getFunctionsClient()).updateDeploymentStatus(functionId, deploymentId))
|
|
145885
146034
|
)
|
|
145886
146035
|
);
|
|
145887
|
-
var functionsListExecutionsCommand = functions.command(`list-executions`).description(`Get a list of all the current user function execution logs. You can use the query params to filter your results.`).requiredOption(`--function-id <function-id>`, `Function ID.`).option(`--queries [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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId`).option(
|
|
146036
|
+
var functionsListExecutionsCommand = functions.command(`list-executions`).description(`Get a list of all the current user function execution logs. You can use the query params to filter your results.`).requiredOption(`--function-id <function-id>`, `Function ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId`).option(
|
|
145888
146037
|
`--total [value]`,
|
|
145889
146038
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
145890
146039
|
(value) => value === void 0 ? true : parseBool(value)
|
|
145891
|
-
).action(
|
|
146040
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
145892
146041
|
actionRunner(
|
|
145893
|
-
async ({ functionId, queries, total }) => parse3(await (await getFunctionsClient()).listExecutions(functionId, queries, total))
|
|
146042
|
+
async ({ functionId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getFunctionsClient()).listExecutions(functionId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
145894
146043
|
)
|
|
145895
146044
|
);
|
|
145896
146045
|
var functionsCreateExecutionCommand = functions.command(`create-execution`).description(`Trigger a function execution. The returned object will return you the current execution status. You can ping the \`Get Execution\` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.`).requiredOption(`--function-id <function-id>`, `Function ID.`).option(`--body <body>`, `HTTP body of execution. Default value is empty string.`).option(
|
|
@@ -146171,13 +146320,13 @@ var getMessagingClient = async () => {
|
|
|
146171
146320
|
var messaging = new Command("messaging").description(commandDescriptions["messaging"] ?? "").configureHelp({
|
|
146172
146321
|
helpWidth: process.stdout.columns || 80
|
|
146173
146322
|
});
|
|
146174
|
-
var messagingListMessagesCommand = messaging.command(`list-messages`).description(`Get a list of all messages from the current Appwrite project.`).option(`--queries [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: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146323
|
+
var messagingListMessagesCommand = messaging.command(`list-messages`).description(`Get a list of all messages from the current Appwrite project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146175
146324
|
`--total [value]`,
|
|
146176
146325
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146177
146326
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146178
|
-
).action(
|
|
146327
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146179
146328
|
actionRunner(
|
|
146180
|
-
async ({ queries, search, total }) => parse3(await (await getMessagingClient()).listMessages(queries, search, total))
|
|
146329
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMessagingClient()).listMessages(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
146181
146330
|
)
|
|
146182
146331
|
);
|
|
146183
146332
|
var messagingCreateEmailCommand = messaging.command(`create-email`).description(`Create a new email message.`).requiredOption(`--message-id <message-id>`, `Message 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.`).requiredOption(`--subject <subject>`, `Email Subject.`).requiredOption(`--content <content>`, `Email Content.`).option(`--topics [topics...]`, `List of Topic IDs.`).option(`--users [users...]`, `List of User IDs.`).option(`--targets [targets...]`, `List of Targets IDs.`).option(`--cc [cc...]`, `Array of target IDs to be added as CC.`).option(`--bcc [bcc...]`, `Array of target IDs to be added as BCC.`).option(`--attachments [attachments...]`, `Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.`).option(
|
|
@@ -146272,31 +146421,31 @@ var messagingDeleteCommand = messaging.command(`delete`).description(`Delete a m
|
|
|
146272
146421
|
async ({ messageId }) => parse3(await (await getMessagingClient()).delete(messageId))
|
|
146273
146422
|
)
|
|
146274
146423
|
);
|
|
146275
|
-
var messagingListMessageLogsCommand = messaging.command(`list-message-logs`).description(`Get the message activity logs listed by its unique ID.`).requiredOption(`--message-id <message-id>`, `Message ID.`).option(`--queries [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 and offset`).option(
|
|
146424
|
+
var messagingListMessageLogsCommand = messaging.command(`list-message-logs`).description(`Get the message activity logs listed by its unique ID.`).requiredOption(`--message-id <message-id>`, `Message ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
146276
146425
|
`--total [value]`,
|
|
146277
146426
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146278
146427
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146279
|
-
).action(
|
|
146428
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
146280
146429
|
actionRunner(
|
|
146281
|
-
async ({ messageId, queries, total }) => parse3(await (await getMessagingClient()).listMessageLogs(messageId, queries, total))
|
|
146430
|
+
async ({ messageId, queries, total, limit, offset }) => parse3(await (await getMessagingClient()).listMessageLogs(messageId, buildQueries({ queries, limit, offset }), total))
|
|
146282
146431
|
)
|
|
146283
146432
|
);
|
|
146284
|
-
var messagingListTargetsCommand = messaging.command(`list-targets`).description(`Get a list of the targets associated with a message.`).requiredOption(`--message-id <message-id>`, `Message ID.`).option(`--queries [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: userId, providerId, identifier, providerType`).option(
|
|
146433
|
+
var messagingListTargetsCommand = messaging.command(`list-targets`).description(`Get a list of the targets associated with a message.`).requiredOption(`--message-id <message-id>`, `Message ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, providerId, identifier, providerType`).option(
|
|
146285
146434
|
`--total [value]`,
|
|
146286
146435
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146287
146436
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146288
|
-
).action(
|
|
146437
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146289
146438
|
actionRunner(
|
|
146290
|
-
async ({ messageId, queries, total }) => parse3(await (await getMessagingClient()).listTargets(messageId, queries, total))
|
|
146439
|
+
async ({ messageId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMessagingClient()).listTargets(messageId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
146291
146440
|
)
|
|
146292
146441
|
);
|
|
146293
|
-
var messagingListProvidersCommand = messaging.command(`list-providers`).description(`Get a list of all providers from the current Appwrite project.`).option(`--queries [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: name, provider, type, enabled`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146442
|
+
var messagingListProvidersCommand = messaging.command(`list-providers`).description(`Get a list of all providers from the current Appwrite project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, provider, type, enabled`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146294
146443
|
`--total [value]`,
|
|
146295
146444
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146296
146445
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146297
|
-
).action(
|
|
146446
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146298
146447
|
actionRunner(
|
|
146299
|
-
async ({ queries, search, total }) => parse3(await (await getMessagingClient()).listProviders(queries, search, total))
|
|
146448
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMessagingClient()).listProviders(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
146300
146449
|
)
|
|
146301
146450
|
);
|
|
146302
146451
|
var messagingCreateApnsProviderCommand = messaging.command(`create-apns-provider`).description(`Create a new Apple Push Notification service provider.`).requiredOption(`--provider-id <provider-id>`, `Provider 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.`).requiredOption(`--name <name>`, `Provider name.`).option(`--auth-key <auth-key>`, `APNS authentication key.`).option(`--auth-key-id <auth-key-id>`, `APNS authentication key ID.`).option(`--team-id <team-id>`, `APNS team ID.`).option(`--bundle-id <bundle-id>`, `APNS bundle ID.`).option(
|
|
@@ -146532,31 +146681,31 @@ var messagingDeleteProviderCommand = messaging.command(`delete-provider`).descri
|
|
|
146532
146681
|
async ({ providerId }) => parse3(await (await getMessagingClient()).deleteProvider(providerId))
|
|
146533
146682
|
)
|
|
146534
146683
|
);
|
|
146535
|
-
var messagingListProviderLogsCommand = messaging.command(`list-provider-logs`).description(`Get the provider activity logs listed by its unique ID.`).requiredOption(`--provider-id <provider-id>`, `Provider ID.`).option(`--queries [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 and offset`).option(
|
|
146684
|
+
var messagingListProviderLogsCommand = messaging.command(`list-provider-logs`).description(`Get the provider activity logs listed by its unique ID.`).requiredOption(`--provider-id <provider-id>`, `Provider ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
146536
146685
|
`--total [value]`,
|
|
146537
146686
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146538
146687
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146539
|
-
).action(
|
|
146688
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
146540
146689
|
actionRunner(
|
|
146541
|
-
async ({ providerId, queries, total }) => parse3(await (await getMessagingClient()).listProviderLogs(providerId, queries, total))
|
|
146690
|
+
async ({ providerId, queries, total, limit, offset }) => parse3(await (await getMessagingClient()).listProviderLogs(providerId, buildQueries({ queries, limit, offset }), total))
|
|
146542
146691
|
)
|
|
146543
146692
|
);
|
|
146544
|
-
var messagingListSubscriberLogsCommand = messaging.command(`list-subscriber-logs`).description(`Get the subscriber activity logs listed by its unique ID.`).requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`).option(`--queries [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 and offset`).option(
|
|
146693
|
+
var messagingListSubscriberLogsCommand = messaging.command(`list-subscriber-logs`).description(`Get the subscriber activity logs listed by its unique ID.`).requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
146545
146694
|
`--total [value]`,
|
|
146546
146695
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146547
146696
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146548
|
-
).action(
|
|
146697
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
146549
146698
|
actionRunner(
|
|
146550
|
-
async ({ subscriberId, queries, total }) => parse3(await (await getMessagingClient()).listSubscriberLogs(subscriberId, queries, total))
|
|
146699
|
+
async ({ subscriberId, queries, total, limit, offset }) => parse3(await (await getMessagingClient()).listSubscriberLogs(subscriberId, buildQueries({ queries, limit, offset }), total))
|
|
146551
146700
|
)
|
|
146552
146701
|
);
|
|
146553
|
-
var messagingListTopicsCommand = messaging.command(`list-topics`).description(`Get a list of all topics from the current Appwrite project.`).option(`--queries [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: name, description, emailTotal, smsTotal, pushTotal`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146702
|
+
var messagingListTopicsCommand = messaging.command(`list-topics`).description(`Get a list of all topics from the current Appwrite project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, description, emailTotal, smsTotal, pushTotal`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146554
146703
|
`--total [value]`,
|
|
146555
146704
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146556
146705
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146557
|
-
).action(
|
|
146706
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146558
146707
|
actionRunner(
|
|
146559
|
-
async ({ queries, search, total }) => parse3(await (await getMessagingClient()).listTopics(queries, search, total))
|
|
146708
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMessagingClient()).listTopics(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
146560
146709
|
)
|
|
146561
146710
|
);
|
|
146562
146711
|
var messagingCreateTopicCommand = messaging.command(`create-topic`).description(`Create a new topic.`).requiredOption(`--topic-id <topic-id>`, `Topic ID. Choose a custom Topic ID or a new Topic ID.`).requiredOption(`--name <name>`, `Topic Name.`).option(`--subscribe [subscribe...]`, `An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. learn more about roles (https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.`).action(
|
|
@@ -146581,22 +146730,22 @@ var messagingDeleteTopicCommand = messaging.command(`delete-topic`).description(
|
|
|
146581
146730
|
async ({ topicId }) => parse3(await (await getMessagingClient()).deleteTopic(topicId))
|
|
146582
146731
|
)
|
|
146583
146732
|
);
|
|
146584
|
-
var messagingListTopicLogsCommand = messaging.command(`list-topic-logs`).description(`Get the topic activity logs listed by its unique ID.`).requiredOption(`--topic-id <topic-id>`, `Topic ID.`).option(`--queries [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 and offset`).option(
|
|
146733
|
+
var messagingListTopicLogsCommand = messaging.command(`list-topic-logs`).description(`Get the topic activity logs listed by its unique ID.`).requiredOption(`--topic-id <topic-id>`, `Topic ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
146585
146734
|
`--total [value]`,
|
|
146586
146735
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146587
146736
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146588
|
-
).action(
|
|
146737
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
146589
146738
|
actionRunner(
|
|
146590
|
-
async ({ topicId, queries, total }) => parse3(await (await getMessagingClient()).listTopicLogs(topicId, queries, total))
|
|
146739
|
+
async ({ topicId, queries, total, limit, offset }) => parse3(await (await getMessagingClient()).listTopicLogs(topicId, buildQueries({ queries, limit, offset }), total))
|
|
146591
146740
|
)
|
|
146592
146741
|
);
|
|
146593
|
-
var messagingListSubscribersCommand = messaging.command(`list-subscribers`).description(`Get a list of all subscribers from the current Appwrite project.`).requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`).option(`--queries [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: targetId, topicId, userId, providerType`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146742
|
+
var messagingListSubscribersCommand = messaging.command(`list-subscribers`).description(`Get a list of all subscribers from the current Appwrite project.`).requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: targetId, topicId, userId, providerType`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146594
146743
|
`--total [value]`,
|
|
146595
146744
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146596
146745
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146597
|
-
).action(
|
|
146746
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146598
146747
|
actionRunner(
|
|
146599
|
-
async ({ topicId, queries, search, total }) => parse3(await (await getMessagingClient()).listSubscribers(topicId, queries, search, total))
|
|
146748
|
+
async ({ topicId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMessagingClient()).listSubscribers(topicId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
146600
146749
|
)
|
|
146601
146750
|
);
|
|
146602
146751
|
var messagingCreateSubscriberCommand = messaging.command(`create-subscriber`).description(`Create a new subscriber.`).requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID to subscribe to.`).requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.`).requiredOption(`--target-id <target-id>`, `Target ID. The target ID to link to the specified Topic ID.`).action(
|
|
@@ -146628,13 +146777,13 @@ var getMigrationsClient = async () => {
|
|
|
146628
146777
|
var migrations = new Command("migrations").description(commandDescriptions["migrations"] ?? "").configureHelp({
|
|
146629
146778
|
helpWidth: process.stdout.columns || 80
|
|
146630
146779
|
});
|
|
146631
|
-
var migrationsListCommand = migrations.command(`list`).description(`List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.`).option(`--queries [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: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146780
|
+
var migrationsListCommand = migrations.command(`list`).description(`List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: status, stage, source, destination, resources, resourceId, resourceType, statusCounters, resourceData, errors`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
146632
146781
|
`--total [value]`,
|
|
146633
146782
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
146634
146783
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146635
|
-
).action(
|
|
146784
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146636
146785
|
actionRunner(
|
|
146637
|
-
async ({ queries, search, total }) => parse3(await (await getMigrationsClient()).list(queries, search, total))
|
|
146786
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMigrationsClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
146638
146787
|
)
|
|
146639
146788
|
);
|
|
146640
146789
|
var migrationsCreateAppwriteMigrationCommand = migrations.command(`create-appwrite-migration`).description(`Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. `).requiredOption(`--resources [resources...]`, `List of resources to migrate`).requiredOption(`--endpoint <endpoint>`, `Source Appwrite endpoint`).requiredOption(`--project-id <project-id>`, `Source Project ID`).requiredOption(`--api-key <api-key>`, `Source API Key`).action(
|
|
@@ -146647,7 +146796,7 @@ var migrationsGetAppwriteReportCommand = migrations.command(`get-appwrite-report
|
|
|
146647
146796
|
async ({ resources, endpoint, projectId, key }) => parse3(await (await getMigrationsClient()).getAppwriteReport(resources, endpoint, projectId, key))
|
|
146648
146797
|
)
|
|
146649
146798
|
);
|
|
146650
|
-
var migrationsCreateCSVExportCommand = migrations.command(`create-csv-export`).description(`Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .csv extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. Learn more about queries (https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(`--delimiter <delimiter>`, `The character that separates each column value. Default is comma.`).option(`--enclosure <enclosure>`, `The character that encloses each column value. Default is double quotes.`).option(`--escape <escape>`, `The escape character for the enclosure character. Default is double quotes.`).option(
|
|
146799
|
+
var migrationsCreateCSVExportCommand = migrations.command(`create-csv-export`).description(`Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .csv extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag queries. Array of query strings generated using the Query class provided by the SDK to filter documents to export. Learn more about queries (https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(`--delimiter <delimiter>`, `The character that separates each column value. Default is comma.`).option(`--enclosure <enclosure>`, `The character that encloses each column value. Default is double quotes.`).option(`--escape <escape>`, `The escape character for the enclosure character. Default is double quotes.`).option(
|
|
146651
146800
|
`--header [value]`,
|
|
146652
146801
|
`Whether to include the header row with column names. Default is true.`,
|
|
146653
146802
|
(value) => value === void 0 ? true : parseBool(value)
|
|
@@ -146655,9 +146804,9 @@ var migrationsCreateCSVExportCommand = migrations.command(`create-csv-export`).d
|
|
|
146655
146804
|
`--notify [value]`,
|
|
146656
146805
|
`Set to true to receive an email when the export is complete. Default is true.`,
|
|
146657
146806
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146658
|
-
).action(
|
|
146807
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146659
146808
|
actionRunner(
|
|
146660
|
-
async ({ resourceId, filename, columns, queries, delimiter, enclosure, escape, header, notify }) => parse3(await (await getMigrationsClient()).createCSVExport(resourceId, filename, columns, queries, delimiter, enclosure, escape, header, notify))
|
|
146809
|
+
async ({ resourceId, filename, columns, queries, delimiter, enclosure, escape, header, notify, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMigrationsClient()).createCSVExport(resourceId, filename, columns, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), delimiter, enclosure, escape, header, notify))
|
|
146661
146810
|
)
|
|
146662
146811
|
);
|
|
146663
146812
|
var migrationsCreateCSVImportCommand = migrations.command(`create-csv-import`).description(`Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File ID.`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`).option(
|
|
@@ -146680,13 +146829,13 @@ var migrationsGetFirebaseReportCommand = migrations.command(`get-firebase-report
|
|
|
146680
146829
|
)
|
|
146681
146830
|
);
|
|
146682
146831
|
var migrationsCreateJSONExportCommand = migrations.command(`create-json-export`).description(`Export documents to a JSON file from your Appwrite database. This endpoint allows you to export documents to a JSON file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.
|
|
146683
|
-
`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. Learn more about queries (https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
|
|
146832
|
+
`).requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`).requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .json extension.`).option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the \`*\` wildcard to export all attributes from the collection.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag queries. Array of query strings generated using the Query class provided by the SDK to filter documents to export. Learn more about queries (https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`).option(
|
|
146684
146833
|
`--notify [value]`,
|
|
146685
146834
|
`Set to true to receive an email when the export is complete. Default is true.`,
|
|
146686
146835
|
(value) => value === void 0 ? true : parseBool(value)
|
|
146687
|
-
).action(
|
|
146836
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146688
146837
|
actionRunner(
|
|
146689
|
-
async ({ resourceId, filename, columns, queries, notify }) => parse3(await (await getMigrationsClient()).createJSONExport(resourceId, filename, columns, queries, notify))
|
|
146838
|
+
async ({ resourceId, filename, columns, queries, notify, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getMigrationsClient()).createJSONExport(resourceId, filename, columns, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), notify))
|
|
146690
146839
|
)
|
|
146691
146840
|
);
|
|
146692
146841
|
var migrationsCreateJSONImportCommand = migrations.command(`create-json-import`).description(`Import documents from a JSON file into your Appwrite database. This endpoint allows you to import documents from a JSON file uploaded to Appwrite Storage bucket.
|
|
@@ -146747,9 +146896,9 @@ var getOrganizationsClient = async () => {
|
|
|
146747
146896
|
var organizations = new Command("organizations").description(commandDescriptions["organizations"] ?? "").configureHelp({
|
|
146748
146897
|
helpWidth: process.stdout.columns || 80
|
|
146749
146898
|
});
|
|
146750
|
-
var organizationsListCommand = organizations.command(`list`).description(`Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.`).option(`--queries [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: name, total, billingPlan, paymentMethodId, backupPaymentMethodId, platform`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).action(
|
|
146899
|
+
var organizationsListCommand = organizations.command(`list`).description(`Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, total, billingPlan, paymentMethodId, backupPaymentMethodId, platform`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146751
146900
|
actionRunner(
|
|
146752
|
-
async ({ queries, search }) => parse3(await (await getOrganizationsClient()).list(queries, search))
|
|
146901
|
+
async ({ queries, search, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getOrganizationsClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search))
|
|
146753
146902
|
)
|
|
146754
146903
|
);
|
|
146755
146904
|
var organizationsCreateCommand = organizations.command(`create`).description(`Create a new organization.
|
|
@@ -146804,9 +146953,9 @@ var organizationsGetAddonPriceCommand = organizations.command(`get-addon-price`)
|
|
|
146804
146953
|
async ({ organizationId, addon }) => parse3(await (await getOrganizationsClient()).getAddonPrice(organizationId, addon))
|
|
146805
146954
|
)
|
|
146806
146955
|
);
|
|
146807
|
-
var organizationsListAggregationsCommand = organizations.command(`list-aggregations`).description(`Get a list of all aggregations for an organization.`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).option(`--queries [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: teamId, aggregationId, from, to`).action(
|
|
146956
|
+
var organizationsListAggregationsCommand = organizations.command(`list-aggregations`).description(`Get a list of all aggregations for an organization.`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: teamId, aggregationId, from, to`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146808
146957
|
actionRunner(
|
|
146809
|
-
async ({ organizationId, queries }) => parse3(await (await getOrganizationsClient()).listAggregations(organizationId, queries))
|
|
146958
|
+
async ({ organizationId, queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getOrganizationsClient()).listAggregations(organizationId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
146810
146959
|
)
|
|
146811
146960
|
);
|
|
146812
146961
|
var organizationsGetAggregationCommand = organizations.command(`get-aggregation`).description(`Get a specific aggregation using it's aggregation ID.`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--aggregation-id <aggregation-id>`, `Invoice unique ID`).option(`--limit <limit>`, `Maximum number of project aggregations to return in response. By default will return maximum 5 results. Maximum of 10 results allowed per request.`, parseInteger).option(`--offset <offset>`, `Offset value. The default value is 0. Use this param to manage pagination.`, parseInteger).action(
|
|
@@ -146830,9 +146979,9 @@ var organizationsUpdateBudgetCommand = organizations.command(`update-budget`).de
|
|
|
146830
146979
|
)
|
|
146831
146980
|
);
|
|
146832
146981
|
var organizationsListCreditsCommand = organizations.command(`list-credits`).description(`List all credits for an organization.
|
|
146833
|
-
`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).option(`--queries [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: teamId, couponId, credits, expiration, status`).action(
|
|
146982
|
+
`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: teamId, couponId, credits, expiration, status`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
146834
146983
|
actionRunner(
|
|
146835
|
-
async ({ organizationId, queries }) => parse3(await (await getOrganizationsClient()).listCredits(organizationId, queries))
|
|
146984
|
+
async ({ organizationId, queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getOrganizationsClient()).listCredits(organizationId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
146836
146985
|
)
|
|
146837
146986
|
);
|
|
146838
146987
|
var organizationsAddCreditCommand = organizations.command(`add-credit`).description(`Add credit to an organization using a coupon.`).requiredOption(`--organization-id <organization-id>`, `Organization ID`).requiredOption(`--coupon-id <coupon-id>`, `ID of the coupon`).action(
|
|
@@ -147009,13 +147158,13 @@ var projectUpdateFreeEmailsCommand = project.command(`update-free-emails`).descr
|
|
|
147009
147158
|
async ({ enabled }) => parse3(await (await getProjectClient()).updateFreeEmails(enabled))
|
|
147010
147159
|
)
|
|
147011
147160
|
);
|
|
147012
|
-
var projectListKeysCommand = project.command(`list-keys`).description(`Get a list of all API keys from the current project.`).option(`--queries [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: expire, accessedAt, name, scopes`).option(
|
|
147161
|
+
var projectListKeysCommand = project.command(`list-keys`).description(`Get a list of all API keys from the current project.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: expire, accessedAt, name, scopes`).option(
|
|
147013
147162
|
`--total [value]`,
|
|
147014
147163
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147015
147164
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147016
|
-
).action(
|
|
147165
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147017
147166
|
actionRunner(
|
|
147018
|
-
async ({ queries, total }) => parse3(await (await getProjectClient()).listKeys(queries, total))
|
|
147167
|
+
async ({ queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectClient()).listKeys(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147019
147168
|
)
|
|
147020
147169
|
);
|
|
147021
147170
|
var projectCreateKeyCommand = project.command(`create-key`).description(`Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.`).requiredOption(`--key-id <key-id>`, `Key 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.`).requiredOption(`--name <name>`, `Key name. Max length: 128 chars.`).requiredOption(`--scopes [scopes...]`, `Key scopes list. Maximum of 100 scopes are allowed.`).option(`--expire <expire>`, `Expiration time in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.`).action(
|
|
@@ -147043,13 +147192,13 @@ var projectUpdateLabelsCommand = project.command(`update-labels`).description(`U
|
|
|
147043
147192
|
async ({ labels }) => parse3(await (await getProjectClient()).updateLabels(labels))
|
|
147044
147193
|
)
|
|
147045
147194
|
);
|
|
147046
|
-
var projectListPlatformsCommand = project.command(`list-platforms`).description(`Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.`).option(`--queries [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: type, name, hostname, bundleIdentifier, applicationId, packageIdentifierName, packageName`).option(
|
|
147195
|
+
var projectListPlatformsCommand = project.command(`list-platforms`).description(`Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: type, name, hostname, bundleIdentifier, applicationId, packageIdentifierName, packageName`).option(
|
|
147047
147196
|
`--total [value]`,
|
|
147048
147197
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147049
147198
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147050
|
-
).action(
|
|
147199
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147051
147200
|
actionRunner(
|
|
147052
|
-
async ({ queries, total }) => parse3(await (await getProjectClient()).listPlatforms(queries, total))
|
|
147201
|
+
async ({ queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectClient()).listPlatforms(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147053
147202
|
)
|
|
147054
147203
|
);
|
|
147055
147204
|
var projectCreateAndroidPlatformCommand = project.command(`create-android-platform`).description(`Create a new Android platform for your project. Use this endpoint to register a new Android platform where your users will run your application which will interact with the Appwrite API.`).requiredOption(`--platform-id <platform-id>`, `Platform 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.`).requiredOption(`--name <name>`, `Platform name. Max length: 128 chars.`).requiredOption(`--application-id <application-id>`, `Android application ID. Max length: 256 chars.`).action(
|
|
@@ -147218,13 +147367,13 @@ var projectGetUsageCommand = project.command(`get-usage`).description(`Get compr
|
|
|
147218
147367
|
async ({ startDate, endDate, period }) => parse3(await (await getProjectClient()).getUsage(startDate, endDate, period))
|
|
147219
147368
|
)
|
|
147220
147369
|
);
|
|
147221
|
-
var projectListVariablesCommand = project.command(`list-variables`).description(`Get a list of all project environment variables.`).option(`--queries [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`).option(
|
|
147370
|
+
var projectListVariablesCommand = project.command(`list-variables`).description(`Get a list of all project environment variables.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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`).option(
|
|
147222
147371
|
`--total [value]`,
|
|
147223
147372
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147224
147373
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147225
|
-
).action(
|
|
147374
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147226
147375
|
actionRunner(
|
|
147227
|
-
async ({ queries, total }) => parse3(await (await getProjectClient()).listVariables(queries, total))
|
|
147376
|
+
async ({ queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectClient()).listVariables(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147228
147377
|
)
|
|
147229
147378
|
);
|
|
147230
147379
|
var projectCreateVariableCommand = project.command(`create-variable`).description(`Create a new project environment variable. These variables can be accessed by all functions and sites in the project.`).requiredOption(`--variable-id <variable-id>`, `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.`).requiredOption(`--key <key>`, `Variable key. Max length: 255 chars.`).requiredOption(`--value <value>`, `Variable value. Max length: 8192 chars.`).option(
|
|
@@ -147268,13 +147417,13 @@ var getProjectsClient = async () => {
|
|
|
147268
147417
|
var projects = new Command("projects").description(commandDescriptions["projects"] ?? "").configureHelp({
|
|
147269
147418
|
helpWidth: process.stdout.columns || 80
|
|
147270
147419
|
});
|
|
147271
|
-
var projectsListCommand = projects.command(`list`).description(`Get a list of all projects. You can use the query params to filter your results. `).option(`--queries [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: name, teamId, labels, search`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147420
|
+
var projectsListCommand = projects.command(`list`).description(`Get a list of all projects. You can use the query params to filter your results. `).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, teamId, labels, search`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147272
147421
|
`--total [value]`,
|
|
147273
147422
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147274
147423
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147275
|
-
).action(
|
|
147424
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147276
147425
|
actionRunner(
|
|
147277
|
-
async ({ queries, search, total }) => parse3(await (await getProjectsClient()).list(queries, search, total))
|
|
147426
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectsClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147278
147427
|
)
|
|
147279
147428
|
);
|
|
147280
147429
|
projectsListCommand.outputFields = ["name", "$id", "region", "status"];
|
|
@@ -147308,9 +147457,9 @@ var projectsUpdateAuthStatusCommand = projects.command(`update-auth-status`).des
|
|
|
147308
147457
|
async ({ projectId, method, status }) => parse3(await (await getProjectsClient()).updateAuthStatus(projectId, method, status))
|
|
147309
147458
|
)
|
|
147310
147459
|
);
|
|
147311
|
-
var projectsListDevKeysCommand = projects.command(`list-dev-keys`).description(`List all the project's dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [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: accessedAt, expire`).action(
|
|
147460
|
+
var projectsListDevKeysCommand = projects.command(`list-dev-keys`).description(`List all the project's dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: accessedAt, expire`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147312
147461
|
actionRunner(
|
|
147313
|
-
async ({ projectId, queries }) => parse3(await (await getProjectsClient()).listDevKeys(projectId, queries))
|
|
147462
|
+
async ({ projectId, queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectsClient()).listDevKeys(projectId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
147314
147463
|
)
|
|
147315
147464
|
);
|
|
147316
147465
|
var projectsCreateDevKeyCommand = projects.command(`create-dev-key`).description(`Create a new project dev key. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. Strictly meant for development purposes only.`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--name <name>`, `Key name. Max length: 128 chars.`).requiredOption(`--expire <expire>`, `Expiration time in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format.`).action(
|
|
@@ -147347,13 +147496,13 @@ var projectsUpdateOAuth2Command = projects.command(`update-o-auth-2`).descriptio
|
|
|
147347
147496
|
async ({ projectId, provider, appId, secret, enabled }) => parse3(await (await getProjectsClient()).updateOAuth2(projectId, provider, appId, secret, enabled))
|
|
147348
147497
|
)
|
|
147349
147498
|
);
|
|
147350
|
-
var projectsListSchedulesCommand = projects.command(`list-schedules`).description(`Get a list of all the project's schedules. You can use the query params to filter your results.`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [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: resourceType, resourceId, projectId, schedule, active, region`).option(
|
|
147499
|
+
var projectsListSchedulesCommand = projects.command(`list-schedules`).description(`Get a list of all the project's schedules. You can use the query params to filter your results.`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: resourceType, resourceId, projectId, schedule, active, region`).option(
|
|
147351
147500
|
`--total [value]`,
|
|
147352
147501
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147353
147502
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147354
|
-
).action(
|
|
147503
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147355
147504
|
actionRunner(
|
|
147356
|
-
async ({ projectId, queries, total }) => parse3(await (await getProjectsClient()).listSchedules(projectId, queries, total))
|
|
147505
|
+
async ({ projectId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProjectsClient()).listSchedules(projectId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147357
147506
|
)
|
|
147358
147507
|
);
|
|
147359
147508
|
var projectsCreateScheduleCommand = projects.command(`create-schedule`).description(`Create a new schedule for a resource.`).requiredOption(`--project-id <project-id>`, `Project unique ID.`).requiredOption(`--resource-type <resource-type>`, `The resource type for the schedule. Possible values: function, execution, message, backup.`).requiredOption(`--resource-id <resource-id>`, `The resource ID to associate with this schedule.`).requiredOption(`--schedule <schedule>`, `Schedule CRON expression.`).option(
|
|
@@ -147394,13 +147543,13 @@ var getProxyClient = async () => {
|
|
|
147394
147543
|
var proxy = new Command("proxy").description(commandDescriptions["proxy"] ?? "").configureHelp({
|
|
147395
147544
|
helpWidth: process.stdout.columns || 80
|
|
147396
147545
|
});
|
|
147397
|
-
var proxyListRulesCommand = proxy.command(`list-rules`).description(`Get a list of all the proxy rules. You can use the query params to filter your results.`).option(`--queries [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`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147546
|
+
var proxyListRulesCommand = proxy.command(`list-rules`).description(`Get a list of all the proxy rules. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147398
147547
|
`--total [value]`,
|
|
147399
147548
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147400
147549
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147401
|
-
).action(
|
|
147550
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147402
147551
|
actionRunner(
|
|
147403
|
-
async ({ queries, search, total }) => parse3(await (await getProxyClient()).listRules(queries, search, total))
|
|
147552
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getProxyClient()).listRules(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147404
147553
|
)
|
|
147405
147554
|
);
|
|
147406
147555
|
var proxyCreateAPIRuleCommand = proxy.command(`create-api-rule`).description(`Create a new proxy rule for serving Appwrite's API on custom domain.`).requiredOption(`--domain <domain>`, `Domain name.`).action(
|
|
@@ -147452,13 +147601,13 @@ var getSitesClient = async () => {
|
|
|
147452
147601
|
var sites = new Command("sites").description(commandDescriptions["sites"] ?? "").configureHelp({
|
|
147453
147602
|
helpWidth: process.stdout.columns || 80
|
|
147454
147603
|
});
|
|
147455
|
-
var sitesListCommand = sites.command(`list`).description(`Get a list of all the project's sites. You can use the query params to filter your results.`).option(`--queries [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: name, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147604
|
+
var sitesListCommand = sites.command(`list`).description(`Get a list of all the project's sites. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, enabled, framework, deploymentId, buildCommand, installCommand, outputDirectory, installationId`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147456
147605
|
`--total [value]`,
|
|
147457
147606
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147458
147607
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147459
|
-
).action(
|
|
147608
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147460
147609
|
actionRunner(
|
|
147461
|
-
async ({ queries, search, total }) => parse3(await (await getSitesClient()).list(queries, search, total))
|
|
147610
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getSitesClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147462
147611
|
)
|
|
147463
147612
|
);
|
|
147464
147613
|
var sitesCreateCommand = sites.command(`create`).description(`Create a new site.`).requiredOption(`--site-id <site-id>`, `Site 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.`).requiredOption(`--name <name>`, `Site name. Max length: 128 chars.`).requiredOption(`--framework <framework>`, `Sites framework.`).requiredOption(`--build-runtime <build-runtime>`, `Runtime to use during build step.`).option(
|
|
@@ -147535,13 +147684,13 @@ var sitesUpdateSiteDeploymentCommand = sites.command(`update-site-deployment`).d
|
|
|
147535
147684
|
async ({ siteId, deploymentId }) => parse3(await (await getSitesClient()).updateSiteDeployment(siteId, deploymentId))
|
|
147536
147685
|
)
|
|
147537
147686
|
);
|
|
147538
|
-
var sitesListDeploymentsCommand = sites.command(`list-deployments`).description(`Get a list of all the site's code deployments. You can use the query params to filter your results.`).requiredOption(`--site-id <site-id>`, `Site ID.`).option(`--queries [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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147687
|
+
var sitesListDeploymentsCommand = sites.command(`list-deployments`).description(`Get a list of all the site's code deployments. You can use the query params to filter your results.`).requiredOption(`--site-id <site-id>`, `Site ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147539
147688
|
`--total [value]`,
|
|
147540
147689
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147541
147690
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147542
|
-
).action(
|
|
147691
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147543
147692
|
actionRunner(
|
|
147544
|
-
async ({ siteId, queries, search, total }) => parse3(await (await getSitesClient()).listDeployments(siteId, queries, search, total))
|
|
147693
|
+
async ({ siteId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getSitesClient()).listDeployments(siteId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147545
147694
|
)
|
|
147546
147695
|
);
|
|
147547
147696
|
var sitesCreateDeploymentCommand = sites.command(`create-deployment`).description(`Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the site's deployment to use your new deployment ID.`).requiredOption(`--site-id <site-id>`, `Site ID.`).requiredOption(`--code <code>`, `Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.`).option(`--install-command <install-command>`, `Install Commands.`).option(`--build-command <build-command>`, `Build Commands.`).option(`--output-directory <output-directory>`, `Output Directory.`).option(
|
|
@@ -147606,13 +147755,13 @@ var sitesUpdateDeploymentStatusCommand = sites.command(`update-deployment-status
|
|
|
147606
147755
|
async ({ siteId, deploymentId }) => parse3(await (await getSitesClient()).updateDeploymentStatus(siteId, deploymentId))
|
|
147607
147756
|
)
|
|
147608
147757
|
);
|
|
147609
|
-
var sitesListLogsCommand = sites.command(`list-logs`).description(`Get a list of all site logs. You can use the query params to filter your results.`).requiredOption(`--site-id <site-id>`, `Site ID.`).option(`--queries [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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId`).option(
|
|
147758
|
+
var sitesListLogsCommand = sites.command(`list-logs`).description(`Get a list of all site logs. You can use the query params to filter your results.`).requiredOption(`--site-id <site-id>`, `Site ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId`).option(
|
|
147610
147759
|
`--total [value]`,
|
|
147611
147760
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147612
147761
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147613
|
-
).action(
|
|
147762
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147614
147763
|
actionRunner(
|
|
147615
|
-
async ({ siteId, queries, total }) => parse3(await (await getSitesClient()).listLogs(siteId, queries, total))
|
|
147764
|
+
async ({ siteId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getSitesClient()).listLogs(siteId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147616
147765
|
)
|
|
147617
147766
|
);
|
|
147618
147767
|
var sitesGetLogCommand = sites.command(`get-log`).description(`Get a site request log by its unique ID.`).requiredOption(`--site-id <site-id>`, `Site ID.`).requiredOption(`--log-id <log-id>`, `Log ID.`).action(
|
|
@@ -147677,13 +147826,13 @@ var getStorageClient = async () => {
|
|
|
147677
147826
|
var storage = new Command("storage").description(commandDescriptions["storage"] ?? "").configureHelp({
|
|
147678
147827
|
helpWidth: process.stdout.columns || 80
|
|
147679
147828
|
});
|
|
147680
|
-
var storageListBucketsCommand = storage.command(`list-buckets`).description(`Get a list of all the storage buckets. You can use the query params to filter your results.`).option(`--queries [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: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147829
|
+
var storageListBucketsCommand = storage.command(`list-buckets`).description(`Get a list of all the storage buckets. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus, transformations`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147681
147830
|
`--total [value]`,
|
|
147682
147831
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147683
147832
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147684
|
-
).action(
|
|
147833
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147685
147834
|
actionRunner(
|
|
147686
|
-
async ({ queries, search, total }) => parse3(await (await getStorageClient()).listBuckets(queries, search, total))
|
|
147835
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getStorageClient()).listBuckets(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147687
147836
|
)
|
|
147688
147837
|
);
|
|
147689
147838
|
var storageCreateBucketCommand = storage.command(`create-bucket`).description(`Create a new storage bucket.`).requiredOption(`--bucket-id <bucket-id>`, `Unique 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.`).requiredOption(`--name <name>`, `Bucket name`).option(`--permissions [permissions...]`, `An array of permission strings. By default, no user is granted with any permissions. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(
|
|
@@ -147746,13 +147895,13 @@ var storageDeleteBucketCommand = storage.command(`delete-bucket`).description(`D
|
|
|
147746
147895
|
async ({ bucketId }) => parse3(await (await getStorageClient()).deleteBucket(bucketId))
|
|
147747
147896
|
)
|
|
147748
147897
|
);
|
|
147749
|
-
var storageListFilesCommand = storage.command(`list-files`).description(`Get a list of all the user files. You can use the query params to filter your results.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).option(`--queries [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: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147898
|
+
var storageListFilesCommand = storage.command(`list-files`).description(`Get a list of all the user files. You can use the query params to filter your results.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, signature, mimeType, sizeOriginal, chunksTotal, chunksUploaded`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147750
147899
|
`--total [value]`,
|
|
147751
147900
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147752
147901
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147753
|
-
).action(
|
|
147902
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147754
147903
|
actionRunner(
|
|
147755
|
-
async ({ bucketId, queries, search, total }) => parse3(await (await getStorageClient()).listFiles(bucketId, queries, search, total))
|
|
147904
|
+
async ({ bucketId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getStorageClient()).listFiles(bucketId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147756
147905
|
)
|
|
147757
147906
|
);
|
|
147758
147907
|
var storageCreateFileCommand = storage.command(`create-file`).description(`Create a new file. Before using this route, you should create a new bucket resource using either a server integration (https://appwrite.io/docs/server/storage#storageCreateBucket) API or directly from your Appwrite console.
|
|
@@ -147840,13 +147989,13 @@ var getTablesDBClient = async () => {
|
|
|
147840
147989
|
var tablesDB = new Command("tables-db").description(commandDescriptions["tablesDB"] ?? "").configureHelp({
|
|
147841
147990
|
helpWidth: process.stdout.columns || 80
|
|
147842
147991
|
});
|
|
147843
|
-
var tablesDBListCommand = tablesDB.command(`list`).description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`).option(`--queries [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 columns: name`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147992
|
+
var tablesDBListCommand = tablesDB.command(`list`).description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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 columns: name`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147844
147993
|
`--total [value]`,
|
|
147845
147994
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147846
147995
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147847
|
-
).action(
|
|
147996
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147848
147997
|
actionRunner(
|
|
147849
|
-
async ({ queries, search, total }) => parse3(await (await getTablesDBClient()).list(queries, search, total))
|
|
147998
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147850
147999
|
)
|
|
147851
148000
|
);
|
|
147852
148001
|
var tablesDBCreateCommand = tablesDB.command(`create`).description(`Create a new Database.
|
|
@@ -147859,9 +148008,9 @@ var tablesDBCreateCommand = tablesDB.command(`create`).description(`Create a new
|
|
|
147859
148008
|
async ({ databaseId, name, enabled }) => parse3(await (await getTablesDBClient()).create(databaseId, name, enabled))
|
|
147860
148009
|
)
|
|
147861
148010
|
);
|
|
147862
|
-
var tablesDBListTransactionsCommand = tablesDB.command(`list-transactions`).description(`List transactions across all databases.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. Learn more about queries (https://appwrite.io/docs/queries).`).action(
|
|
148011
|
+
var tablesDBListTransactionsCommand = tablesDB.command(`list-transactions`).description(`List transactions across all databases.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag queries. Array of query strings generated using the Query class provided by the SDK. Learn more about queries (https://appwrite.io/docs/queries).`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147863
148012
|
actionRunner(
|
|
147864
|
-
async ({ queries }) => parse3(await (await getTablesDBClient()).listTransactions(queries))
|
|
148013
|
+
async ({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).listTransactions(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset })))
|
|
147865
148014
|
)
|
|
147866
148015
|
);
|
|
147867
148016
|
var tablesDBCreateTransactionCommand = tablesDB.command(`create-transaction`).description(`Create a new transaction.`).option(`--ttl <ttl>`, `Seconds before the transaction expires.`, parseInteger).action(
|
|
@@ -147921,13 +148070,13 @@ var tablesDBDeleteCommand = tablesDB.command(`delete`).description(`Delete a dat
|
|
|
147921
148070
|
async ({ databaseId }) => parse3(await (await getTablesDBClient()).delete(databaseId))
|
|
147922
148071
|
)
|
|
147923
148072
|
);
|
|
147924
|
-
var tablesDBListTablesCommand = tablesDB.command(`list-tables`).description(`Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [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 columns: name, enabled, rowSecurity`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148073
|
+
var tablesDBListTablesCommand = tablesDB.command(`list-tables`).description(`Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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 columns: name, enabled, rowSecurity`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
147925
148074
|
`--total [value]`,
|
|
147926
148075
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147927
148076
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147928
|
-
).action(
|
|
148077
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147929
148078
|
actionRunner(
|
|
147930
|
-
async ({ databaseId, queries, search, total }) => parse3(await (await getTablesDBClient()).listTables(databaseId, queries, search, total))
|
|
148079
|
+
async ({ databaseId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).listTables(databaseId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
147931
148080
|
)
|
|
147932
148081
|
);
|
|
147933
148082
|
var tablesDBCreateTableCommand = tablesDB.command(`create-table`).description(`Create a new Table. Before using this route, you should create a new database resource using either a server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Unique 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.`).requiredOption(`--name <name>`, `Table name. Max length: 128 chars.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, no user is granted with any permissions. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(
|
|
@@ -147970,13 +148119,13 @@ var tablesDBDeleteTableCommand = tablesDB.command(`delete-table`).description(`D
|
|
|
147970
148119
|
async ({ databaseId, tableId }) => parse3(await (await getTablesDBClient()).deleteTable(databaseId, tableId))
|
|
147971
148120
|
)
|
|
147972
148121
|
);
|
|
147973
|
-
var tablesDBListColumnsCommand = tablesDB.command(`list-columns`).description(`List columns in the table.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--queries [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 columns: key, type, size, required, array, status, error`).option(
|
|
148122
|
+
var tablesDBListColumnsCommand = tablesDB.command(`list-columns`).description(`List columns in the table.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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 columns: key, type, size, required, array, status, error`).option(
|
|
147974
148123
|
`--total [value]`,
|
|
147975
148124
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
147976
148125
|
(value) => value === void 0 ? true : parseBool(value)
|
|
147977
|
-
).action(
|
|
148126
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
147978
148127
|
actionRunner(
|
|
147979
|
-
async ({ databaseId, tableId, queries, total }) => parse3(await (await getTablesDBClient()).listColumns(databaseId, tableId, queries, total))
|
|
148128
|
+
async ({ databaseId, tableId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).listColumns(databaseId, tableId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
147980
148129
|
)
|
|
147981
148130
|
);
|
|
147982
148131
|
var tablesDBCreateBooleanColumnCommand = tablesDB.command(`create-boolean-column`).description(`Create a boolean column.
|
|
@@ -148263,13 +148412,13 @@ var tablesDBUpdateRelationshipColumnCommand = tablesDB.command(`update-relations
|
|
|
148263
148412
|
async ({ databaseId, tableId, key, onDelete, newKey }) => parse3(await (await getTablesDBClient()).updateRelationshipColumn(databaseId, tableId, key, onDelete, newKey))
|
|
148264
148413
|
)
|
|
148265
148414
|
);
|
|
148266
|
-
var tablesDBListIndexesCommand = tablesDB.command(`list-indexes`).description(`List indexes on the table.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).option(`--queries [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 columns: key, type, status, attributes, error`).option(
|
|
148415
|
+
var tablesDBListIndexesCommand = tablesDB.command(`list-indexes`).description(`List indexes on the table.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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 columns: key, type, status, attributes, error`).option(
|
|
148267
148416
|
`--total [value]`,
|
|
148268
148417
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148269
148418
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148270
|
-
).action(
|
|
148419
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148271
148420
|
actionRunner(
|
|
148272
|
-
async ({ databaseId, tableId, queries, total }) => parse3(await (await getTablesDBClient()).listIndexes(databaseId, tableId, queries, total))
|
|
148421
|
+
async ({ databaseId, tableId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).listIndexes(databaseId, tableId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
148273
148422
|
)
|
|
148274
148423
|
);
|
|
148275
148424
|
var tablesDBCreateIndexCommand = tablesDB.command(`create-index`).description(`Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
|
|
@@ -148288,18 +148437,18 @@ var tablesDBDeleteIndexCommand = tablesDB.command(`delete-index`).description(`D
|
|
|
148288
148437
|
async ({ databaseId, tableId, key }) => parse3(await (await getTablesDBClient()).deleteIndex(databaseId, tableId, key))
|
|
148289
148438
|
)
|
|
148290
148439
|
);
|
|
148291
|
-
var tablesDBListTableLogsCommand = tablesDB.command(`list-table-logs`).description(`Get the table activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--queries [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 and offset`).action(
|
|
148440
|
+
var tablesDBListTableLogsCommand = tablesDB.command(`list-table-logs`).description(`Get the table activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
148292
148441
|
actionRunner(
|
|
148293
|
-
async ({ databaseId, tableId, queries }) => parse3(await (await getTablesDBClient()).listTableLogs(databaseId, tableId, queries))
|
|
148442
|
+
async ({ databaseId, tableId, queries, limit, offset }) => parse3(await (await getTablesDBClient()).listTableLogs(databaseId, tableId, buildQueries({ queries, limit, offset })))
|
|
148294
148443
|
)
|
|
148295
148444
|
);
|
|
148296
|
-
var tablesDBListRowsCommand = tablesDB.command(`list-rows`).description(`Get a list of all the user's rows in a given table. You can use the query params to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service server integration (https://appwrite.io/docs/products/databases/tables#create-table).`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(
|
|
148445
|
+
var tablesDBListRowsCommand = tablesDB.command(`list-rows`).description(`Get a list of all the user's rows in a given table. You can use the query params to filter your results.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service server integration (https://appwrite.io/docs/products/databases/tables#create-table).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, pagination, and selection prefer --where, --sort-asc, --sort-desc, --limit, --offset, and --select. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(
|
|
148297
148446
|
`--total [value]`,
|
|
148298
148447
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148299
148448
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148300
|
-
).option(`--ttl <ttl>`, `TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query \u2014 so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).`, parseInteger).action(
|
|
148449
|
+
).option(`--ttl <ttl>`, `TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query \u2014 so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).`, parseInteger).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).option(`--select <attribute>`, `Attribute to include in the response. Repeat for multiple attributes.`, (value, previous) => collectQueryValue(value, previous)).action(
|
|
148301
148450
|
actionRunner(
|
|
148302
|
-
async ({ databaseId, tableId, queries, transactionId, total, ttl }) => parse3(await (await getTablesDBClient()).listRows(databaseId, tableId, queries, transactionId, total, ttl))
|
|
148451
|
+
async ({ databaseId, tableId, queries, transactionId, total, ttl, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset, select }) => parse3(await (await getTablesDBClient()).listRows(databaseId, tableId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset, select }), transactionId, total, ttl))
|
|
148303
148452
|
)
|
|
148304
148453
|
);
|
|
148305
148454
|
var tablesDBCreateRowCommand = tablesDB.command(`create-row`).description(`Create a new Row. Before using this route, you should create a new table resource using either a server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.`).requiredOption(`--row-id <row-id>`, `Row 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.`).requiredOption(`--data <data>`, `Row data as JSON object.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, only the current user is granted all permissions. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -148318,19 +148467,19 @@ var tablesDBUpsertRowsCommand = tablesDB.command(`upsert-rows`).description(`Cre
|
|
|
148318
148467
|
async ({ databaseId, tableId, rows, transactionId }) => parse3(await (await getTablesDBClient()).upsertRows(databaseId, tableId, rows, transactionId))
|
|
148319
148468
|
)
|
|
148320
148469
|
);
|
|
148321
|
-
var tablesDBUpdateRowsCommand = tablesDB.command(`update-rows`).description(`Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--data <data>`, `Row data as JSON object. Include only column and value pairs to be updated.`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
148470
|
+
var tablesDBUpdateRowsCommand = tablesDB.command(`update-rows`).description(`Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).option(`--data <data>`, `Row data as JSON object. Include only column and value pairs to be updated.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148322
148471
|
actionRunner(
|
|
148323
|
-
async ({ databaseId, tableId, data, queries, transactionId }) => parse3(await (await getTablesDBClient()).updateRows(databaseId, tableId, JSON.parse(data), queries, transactionId))
|
|
148472
|
+
async ({ databaseId, tableId, data, queries, transactionId, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).updateRows(databaseId, tableId, JSON.parse(data), buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), transactionId))
|
|
148324
148473
|
)
|
|
148325
148474
|
);
|
|
148326
|
-
var tablesDBDeleteRowsCommand = tablesDB.command(`delete-rows`).description(`Bulk delete rows using queries, if no queries are passed then all rows are deleted.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
148475
|
+
var tablesDBDeleteRowsCommand = tablesDB.command(`delete-rows`).description(`Bulk delete rows using queries, if no queries are passed then all rows are deleted.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148327
148476
|
actionRunner(
|
|
148328
|
-
async ({ databaseId, tableId, queries, transactionId }) => parse3(await (await getTablesDBClient()).deleteRows(databaseId, tableId, queries, transactionId))
|
|
148477
|
+
async ({ databaseId, tableId, queries, transactionId, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTablesDBClient()).deleteRows(databaseId, tableId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), transactionId))
|
|
148329
148478
|
)
|
|
148330
148479
|
);
|
|
148331
|
-
var tablesDBGetRowCommand = tablesDB.command(`get-row`).description(`Get a row by its unique ID. This endpoint response returns a JSON object with the row data.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).requiredOption(`--row-id <row-id>`, `Row ID.`).option(`--queries [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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).action(
|
|
148480
|
+
var tablesDBGetRowCommand = tablesDB.command(`get-row`).description(`Get a row by its unique ID. This endpoint response returns a JSON object with the row data.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`).requiredOption(`--row-id <row-id>`, `Row ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for selecting returned attributes prefer --select. When mixed, raw --queries are sent before generated flag 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.`).option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`).option(`--select <attribute>`, `Attribute to include in the response. Repeat for multiple attributes.`, (value, previous) => collectQueryValue(value, previous)).action(
|
|
148332
148481
|
actionRunner(
|
|
148333
|
-
async ({ databaseId, tableId, rowId, queries, transactionId }) => parse3(await (await getTablesDBClient()).getRow(databaseId, tableId, rowId, queries, transactionId))
|
|
148482
|
+
async ({ databaseId, tableId, rowId, queries, transactionId, select }) => parse3(await (await getTablesDBClient()).getRow(databaseId, tableId, rowId, buildQueries({ queries, select }), transactionId))
|
|
148334
148483
|
)
|
|
148335
148484
|
);
|
|
148336
148485
|
var tablesDBUpsertRowCommand = tablesDB.command(`upsert-row`).description(`Create or update a Row. Before using this route, you should create a new table resource using either a server integration (https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).requiredOption(`--row-id <row-id>`, `Row ID.`).option(`--data <data>`, `Row data as JSON object. Include all required columns of the row to be created or updated.`).option(`--permissions [permissions...]`, `An array of permissions strings. By default, the current permissions are inherited. Learn more about permissions (https://appwrite.io/docs/permissions).`).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -148348,9 +148497,9 @@ var tablesDBDeleteRowCommand = tablesDB.command(`delete-row`).description(`Delet
|
|
|
148348
148497
|
async ({ databaseId, tableId, rowId, transactionId }) => parse3(await (await getTablesDBClient()).deleteRow(databaseId, tableId, rowId, transactionId))
|
|
148349
148498
|
)
|
|
148350
148499
|
);
|
|
148351
|
-
var tablesDBListRowLogsCommand = tablesDB.command(`list-row-logs`).description(`Get the row activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).requiredOption(`--row-id <row-id>`, `Row ID.`).option(`--queries [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 and offset`).action(
|
|
148500
|
+
var tablesDBListRowLogsCommand = tablesDB.command(`list-row-logs`).description(`Get the row activity logs list by its unique ID.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).requiredOption(`--row-id <row-id>`, `Row ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
148352
148501
|
actionRunner(
|
|
148353
|
-
async ({ databaseId, tableId, rowId, queries }) => parse3(await (await getTablesDBClient()).listRowLogs(databaseId, tableId, rowId, queries))
|
|
148502
|
+
async ({ databaseId, tableId, rowId, queries, limit, offset }) => parse3(await (await getTablesDBClient()).listRowLogs(databaseId, tableId, rowId, buildQueries({ queries, limit, offset })))
|
|
148354
148503
|
)
|
|
148355
148504
|
);
|
|
148356
148505
|
var tablesDBDecrementRowColumnCommand = tablesDB.command(`decrement-row-column`).description(`Decrement a specific column of a row by a given value.`).requiredOption(`--database-id <database-id>`, `Database ID.`).requiredOption(`--table-id <table-id>`, `Table ID.`).requiredOption(`--row-id <row-id>`, `Row ID.`).requiredOption(`--column <column>`, `Column key.`).option(`--value <value>`, `Value to increment the column by. The value must be a number.`, parseInteger).option(`--min <min>`, `Minimum value for the column. If the current value is lesser than this value, an exception will be thrown.`, parseInteger).option(`--transaction-id <transaction-id>`, `Transaction ID for staging the operation.`).action(
|
|
@@ -148394,13 +148543,13 @@ var getTeamsClient = async () => {
|
|
|
148394
148543
|
var teams = new Command("teams").description(commandDescriptions["teams"] ?? "").configureHelp({
|
|
148395
148544
|
helpWidth: process.stdout.columns || 80
|
|
148396
148545
|
});
|
|
148397
|
-
var teamsListCommand = teams.command(`list`).description(`Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.`).option(`--queries [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: name, total, billingPlan`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148546
|
+
var teamsListCommand = teams.command(`list`).description(`Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, total, billingPlan`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148398
148547
|
`--total [value]`,
|
|
148399
148548
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148400
148549
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148401
|
-
).action(
|
|
148550
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148402
148551
|
actionRunner(
|
|
148403
|
-
async ({ queries, search, total }) => parse3(await (await getTeamsClient()).list(queries, search, total))
|
|
148552
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTeamsClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148404
148553
|
)
|
|
148405
148554
|
);
|
|
148406
148555
|
var teamsCreateCommand = teams.command(`create`).description(`Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.`).requiredOption(`--team-id <team-id>`, `Team 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.`).requiredOption(`--name <name>`, `Team name. Max length: 128 chars.`).option(`--roles [roles...]`, `Array of strings. Use this param to set the roles in the team for the user who created it. The default role is owner. A role can be any string. Learn more about roles and permissions (https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.`).action(
|
|
@@ -148423,22 +148572,22 @@ var teamsDeleteCommand = teams.command(`delete`).description(`Delete a team usin
|
|
|
148423
148572
|
async ({ teamId }) => parse3(await (await getTeamsClient()).delete(teamId))
|
|
148424
148573
|
)
|
|
148425
148574
|
);
|
|
148426
|
-
var teamsListLogsCommand = teams.command(`list-logs`).description(`Get the team activity logs list by its unique ID.`).requiredOption(`--team-id <team-id>`, `Team ID.`).option(`--queries [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 and offset`).option(
|
|
148575
|
+
var teamsListLogsCommand = teams.command(`list-logs`).description(`Get the team activity logs list by its unique ID.`).requiredOption(`--team-id <team-id>`, `Team ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
148427
148576
|
`--total [value]`,
|
|
148428
148577
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148429
148578
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148430
|
-
).action(
|
|
148579
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
148431
148580
|
actionRunner(
|
|
148432
|
-
async ({ teamId, queries, total }) => parse3(await (await getTeamsClient()).listLogs(teamId, queries, total))
|
|
148581
|
+
async ({ teamId, queries, total, limit, offset }) => parse3(await (await getTeamsClient()).listLogs(teamId, buildQueries({ queries, limit, offset }), total))
|
|
148433
148582
|
)
|
|
148434
148583
|
);
|
|
148435
|
-
var teamsListMembershipsCommand = teams.command(`list-memberships`).description(`Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.`).requiredOption(`--team-id <team-id>`, `Team ID.`).option(`--queries [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: userId, teamId, invited, joined, confirm, roles`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148584
|
+
var teamsListMembershipsCommand = teams.command(`list-memberships`).description(`Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.`).requiredOption(`--team-id <team-id>`, `Team ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, teamId, invited, joined, confirm, roles`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148436
148585
|
`--total [value]`,
|
|
148437
148586
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148438
148587
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148439
|
-
).action(
|
|
148588
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148440
148589
|
actionRunner(
|
|
148441
|
-
async ({ teamId, queries, search, total }) => parse3(await (await getTeamsClient()).listMemberships(teamId, queries, search, total))
|
|
148590
|
+
async ({ teamId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTeamsClient()).listMemberships(teamId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148442
148591
|
)
|
|
148443
148592
|
);
|
|
148444
148593
|
var teamsCreateMembershipCommand = teams.command(`create-membership`).description(`Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.
|
|
@@ -148500,13 +148649,13 @@ var getTokensClient = async () => {
|
|
|
148500
148649
|
var tokens = new Command("tokens").description(commandDescriptions["tokens"] ?? "").configureHelp({
|
|
148501
148650
|
helpWidth: process.stdout.columns || 80
|
|
148502
148651
|
});
|
|
148503
|
-
var tokensListCommand = tokens.command(`list`).description(`List all the tokens created for a specific file or bucket. You can use the query params to filter your results.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File unique ID.`).option(`--queries [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: expire`).option(
|
|
148652
|
+
var tokensListCommand = tokens.command(`list`).description(`List all the tokens created for a specific file or bucket. You can use the query params to filter your results.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File unique ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: expire`).option(
|
|
148504
148653
|
`--total [value]`,
|
|
148505
148654
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148506
148655
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148507
|
-
).action(
|
|
148656
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148508
148657
|
actionRunner(
|
|
148509
|
-
async ({ bucketId, fileId, queries, total }) => parse3(await (await getTokensClient()).list(bucketId, fileId, queries, total))
|
|
148658
|
+
async ({ bucketId, fileId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getTokensClient()).list(bucketId, fileId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
148510
148659
|
)
|
|
148511
148660
|
);
|
|
148512
148661
|
var tokensCreateFileTokenCommand = tokens.command(`create-file-token`).description(`Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.`).requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service server integration (https://appwrite.io/docs/server/storage#createBucket).`).requiredOption(`--file-id <file-id>`, `File unique ID.`).option(`--expire <expire>`, `Token expiry date`).action(
|
|
@@ -148542,13 +148691,13 @@ var getUsersClient = async () => {
|
|
|
148542
148691
|
var users = new Command("users").description(commandDescriptions["users"] ?? "").configureHelp({
|
|
148543
148692
|
helpWidth: process.stdout.columns || 80
|
|
148544
148693
|
});
|
|
148545
|
-
var usersListCommand = users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148694
|
+
var usersListCommand = users.command(`list`).description(`Get a list of all the project's users. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148546
148695
|
`--total [value]`,
|
|
148547
148696
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148548
148697
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148549
|
-
).action(
|
|
148698
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148550
148699
|
actionRunner(
|
|
148551
|
-
async ({ queries, search, total }) => parse3(await (await getUsersClient()).list(queries, search, total))
|
|
148700
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getUsersClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148552
148701
|
)
|
|
148553
148702
|
);
|
|
148554
148703
|
var usersCreateCommand = users.command(`create`).description(`Create a new user.`).requiredOption(`--user-id <user-id>`, `User 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.`).option(`--email <email>`, `User email.`).option(`--phone <phone>`, `Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`).option(`--password <password>`, `Plain text user password. Must be at least 8 chars.`).option(`--name <name>`, `User name. Max length: 128 chars.`).action(
|
|
@@ -148566,13 +148715,13 @@ var usersCreateBcryptUserCommand = users.command(`create-bcrypt-user`).descripti
|
|
|
148566
148715
|
async ({ userId, email: email3, password, name }) => parse3(await (await getUsersClient()).createBcryptUser(userId, email3, password, name))
|
|
148567
148716
|
)
|
|
148568
148717
|
);
|
|
148569
|
-
var usersListIdentitiesCommand = users.command(`list-identities`).description(`Get identities for all users.`).option(`--queries [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: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148718
|
+
var usersListIdentitiesCommand = users.command(`list-identities`).description(`Get identities for all users.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, provider, providerUid, providerEmail, providerAccessTokenExpiry`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148570
148719
|
`--total [value]`,
|
|
148571
148720
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148572
148721
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148573
|
-
).action(
|
|
148722
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148574
148723
|
actionRunner(
|
|
148575
|
-
async ({ queries, search, total }) => parse3(await (await getUsersClient()).listIdentities(queries, search, total))
|
|
148724
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getUsersClient()).listIdentities(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148576
148725
|
)
|
|
148577
148726
|
);
|
|
148578
148727
|
var usersDeleteIdentityCommand = users.command(`delete-identity`).description(`Delete an identity by its unique ID.`).requiredOption(`--identity-id <identity-id>`, `Identity ID.`).action(
|
|
@@ -148644,22 +148793,22 @@ Labels can be used to grant access to resources. While teams are a way for user'
|
|
|
148644
148793
|
async ({ userId, labels }) => parse3(await (await getUsersClient()).updateLabels(userId, labels))
|
|
148645
148794
|
)
|
|
148646
148795
|
);
|
|
148647
|
-
var usersListLogsCommand = users.command(`list-logs`).description(`Get the user activity logs list by its unique ID.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [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 and offset`).option(
|
|
148796
|
+
var usersListLogsCommand = users.command(`list-logs`).description(`Get the user activity logs list by its unique ID.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(
|
|
148648
148797
|
`--total [value]`,
|
|
148649
148798
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148650
148799
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148651
|
-
).action(
|
|
148800
|
+
).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
148652
148801
|
actionRunner(
|
|
148653
|
-
async ({ userId, queries, total }) => parse3(await (await getUsersClient()).listLogs(userId, queries, total))
|
|
148802
|
+
async ({ userId, queries, total, limit, offset }) => parse3(await (await getUsersClient()).listLogs(userId, buildQueries({ queries, limit, offset }), total))
|
|
148654
148803
|
)
|
|
148655
148804
|
);
|
|
148656
|
-
var usersListMembershipsCommand = users.command(`list-memberships`).description(`Get the user membership list by its unique ID.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [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: userId, teamId, invited, joined, confirm, roles`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148805
|
+
var usersListMembershipsCommand = users.command(`list-memberships`).description(`Get the user membership list by its unique ID.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, teamId, invited, joined, confirm, roles`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148657
148806
|
`--total [value]`,
|
|
148658
148807
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148659
148808
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148660
|
-
).action(
|
|
148809
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148661
148810
|
actionRunner(
|
|
148662
|
-
async ({ userId, queries, search, total }) => parse3(await (await getUsersClient()).listMemberships(userId, queries, search, total))
|
|
148811
|
+
async ({ userId, queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getUsersClient()).listMemberships(userId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148663
148812
|
)
|
|
148664
148813
|
);
|
|
148665
148814
|
var usersUpdateMfaCommand = users.command(`update-mfa`).description(`Enable or disable MFA on a user account.`).requiredOption(`--user-id <user-id>`, `User ID.`).requiredOption(`--mfa <mfa>`, `Enable or disable MFA.`, parseBool).action(
|
|
@@ -148748,13 +148897,13 @@ var usersUpdateStatusCommand = users.command(`update-status`).description(`Updat
|
|
|
148748
148897
|
async ({ userId, status }) => parse3(await (await getUsersClient()).updateStatus(userId, status))
|
|
148749
148898
|
)
|
|
148750
148899
|
);
|
|
148751
|
-
var usersListTargetsCommand = users.command(`list-targets`).description(`List the messaging targets that are associated with a user.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [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: userId, providerId, identifier, providerType`).option(
|
|
148900
|
+
var usersListTargetsCommand = users.command(`list-targets`).description(`List the messaging targets that are associated with a user.`).requiredOption(`--user-id <user-id>`, `User ID.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: userId, providerId, identifier, providerType`).option(
|
|
148752
148901
|
`--total [value]`,
|
|
148753
148902
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148754
148903
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148755
|
-
).action(
|
|
148904
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148756
148905
|
actionRunner(
|
|
148757
|
-
async ({ userId, queries, total }) => parse3(await (await getUsersClient()).listTargets(userId, queries, total))
|
|
148906
|
+
async ({ userId, queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getUsersClient()).listTargets(userId, buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
148758
148907
|
)
|
|
148759
148908
|
);
|
|
148760
148909
|
var usersCreateTargetCommand = users.command(`create-target`).description(`Create a messaging target.`).requiredOption(`--user-id <user-id>`, `User ID.`).requiredOption(`--target-id <target-id>`, `Target 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.`).requiredOption(`--provider-type <provider-type>`, `The target provider type. Can be one of the following: \`email\`, \`sms\` or \`push\`.`).requiredOption(`--identifier <identifier>`, `The target identifier (token, email, phone etc.)`).option(`--provider-id <provider-id>`, `Provider ID. Message will be sent to this target from the specified provider ID. If no provider ID is set the first setup provider will be used.`).option(`--name <name>`, `Target name. Max length: 128 chars. For example: My Awesome App Galaxy S23.`).action(
|
|
@@ -148811,9 +148960,9 @@ var vcsCreateRepositoryDetectionCommand = vcs.command(`create-repository-detecti
|
|
|
148811
148960
|
async ({ installationId, providerRepositoryId, type, providerRootDirectory }) => parse3(await (await getVcsClient()).createRepositoryDetection(installationId, providerRepositoryId, type, providerRootDirectory))
|
|
148812
148961
|
)
|
|
148813
148962
|
);
|
|
148814
|
-
var vcsListRepositoriesCommand = vcs.command(`list-repositories`).description(`Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.`).requiredOption(`--installation-id <installation-id>`, `Installation Id`).requiredOption(`--type <type>`, `Detector type. Must be one of the following: runtime, framework`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(`--queries [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 and offset`).action(
|
|
148963
|
+
var vcsListRepositoriesCommand = vcs.command(`list-repositories`).description(`Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.`).requiredOption(`--installation-id <installation-id>`, `Installation Id`).requiredOption(`--type <type>`, `Detector type. Must be one of the following: runtime, framework`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common pagination prefer --limit and --offset. When mixed, raw --queries are sent before generated flag 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 and offset`).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).action(
|
|
148815
148964
|
actionRunner(
|
|
148816
|
-
async ({ installationId, type, search, queries }) => parse3(await (await getVcsClient()).listRepositories(installationId, type, search, queries))
|
|
148965
|
+
async ({ installationId, type, search, queries, limit, offset }) => parse3(await (await getVcsClient()).listRepositories(installationId, type, search, buildQueries({ queries, limit, offset })))
|
|
148817
148966
|
)
|
|
148818
148967
|
);
|
|
148819
148968
|
var vcsCreateRepositoryCommand = vcs.command(`create-repository`).description(`Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.`).requiredOption(`--installation-id <installation-id>`, `Installation Id`).requiredOption(`--name <name>`, `Repository name (slug)`).requiredOption(`--xprivate <xprivate>`, `Mark repository public or private`, parseBool).action(
|
|
@@ -148843,13 +148992,13 @@ var vcsUpdateExternalDeploymentsCommand = vcs.command(`update-external-deploymen
|
|
|
148843
148992
|
)
|
|
148844
148993
|
);
|
|
148845
148994
|
var vcsListInstallationsCommand = vcs.command(`list-installations`).description(`List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
|
|
148846
|
-
`).option(`--queries [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: provider, organization`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148995
|
+
`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: provider, organization`).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).option(
|
|
148847
148996
|
`--total [value]`,
|
|
148848
148997
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148849
148998
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148850
|
-
).action(
|
|
148999
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148851
149000
|
actionRunner(
|
|
148852
|
-
async ({ queries, search, total }) => parse3(await (await getVcsClient()).listInstallations(queries, search, total))
|
|
149001
|
+
async ({ queries, search, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getVcsClient()).listInstallations(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), search, total))
|
|
148853
149002
|
)
|
|
148854
149003
|
);
|
|
148855
149004
|
var vcsGetInstallationCommand = vcs.command(`get-installation`).description(`Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. `).requiredOption(`--installation-id <installation-id>`, `Installation Id`).action(
|
|
@@ -148875,13 +149024,13 @@ var getWebhooksClient = async () => {
|
|
|
148875
149024
|
var webhooks = new Command("webhooks").description(commandDescriptions["webhooks"] ?? "").configureHelp({
|
|
148876
149025
|
helpWidth: process.stdout.columns || 80
|
|
148877
149026
|
});
|
|
148878
|
-
var webhooksListCommand = webhooks.command(`list`).description(`Get a list of all webhooks belonging to the project. You can use the query params to filter your results.`).option(`--queries [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: name, url, authUsername, tls, events, enabled, logs, attempts`).option(
|
|
149027
|
+
var webhooksListCommand = webhooks.command(`list`).description(`Get a list of all webhooks belonging to the project. You can use the query params to filter your results.`).option(`--queries [queries...]`, `Raw Appwrite JSON query strings (legacy). Use this for advanced queries or automation; for common filtering, sorting, and pagination prefer --where, --sort-asc, --sort-desc, --limit, and --offset. When mixed, raw --queries are sent before generated flag 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: name, url, authUsername, tls, events, enabled, logs, attempts`).option(
|
|
148879
149028
|
`--total [value]`,
|
|
148880
149029
|
`When set to false, the total count returned will be 0 and will not be calculated.`,
|
|
148881
149030
|
(value) => value === void 0 ? true : parseBool(value)
|
|
148882
|
-
).action(
|
|
149031
|
+
).option(`--where <expression>`, `Filter using a simple comparison expression. Repeat for multiple filters. Supports field=value, field!=value, field>value, field>=value, field<value, and field<=value.`, (value, previous) => collectQueryValue(parseWhereQuery(value), previous)).option(`--sort-asc <attribute>`, `Sort results by an attribute in ascending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--sort-desc <attribute>`, `Sort results by an attribute in descending order. Repeat for multiple sort fields.`, (value, previous) => collectQueryValue(value, previous)).option(`--limit <limit>`, `Maximum number of results to return.`, parseInteger).option(`--offset <offset>`, `Number of results to skip.`, parseInteger).option(`--cursor-after <id>`, `Return results after this cursor ID.`).option(`--cursor-before <id>`, `Return results before this cursor ID.`).action(
|
|
148883
149032
|
actionRunner(
|
|
148884
|
-
async ({ queries, total }) => parse3(await (await getWebhooksClient()).list(queries, total))
|
|
149033
|
+
async ({ queries, total, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }) => parse3(await (await getWebhooksClient()).list(buildQueries({ queries, where, sortAsc, sortDesc, cursorAfter, cursorBefore, limit, offset }), total))
|
|
148885
149034
|
)
|
|
148886
149035
|
);
|
|
148887
149036
|
var webhooksCreateCommand = webhooks.command(`create`).description(`Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.`).requiredOption(`--webhook-id <webhook-id>`, `Webhook 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.`).requiredOption(`--url <url>`, `Webhook URL.`).requiredOption(`--name <name>`, `Webhook name. Max length: 128 chars.`).requiredOption(`--events [events...]`, `Events list. Maximum of 100 events are allowed.`).option(
|