@appwrite.io/console 13.1.0 → 14.0.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 +1 -1
- package/dist/cjs/sdk.js +5059 -687
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +5057 -688
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +5061 -689
- package/package.json +1 -1
- package/types/enums/{site-adapter.d.ts → adapter.d.ts} +1 -1
- package/types/enums/{organization-addon.d.ts → addon.d.ts} +1 -1
- package/types/enums/appwrite-migration-resource.d.ts +13 -1
- package/types/enums/{function-runtime.d.ts → build-runtime.d.ts} +1 -1
- package/types/enums/embedding-model.d.ts +4 -1
- package/types/enums/{site-framework.d.ts → framework.d.ts} +1 -1
- package/types/enums/{migration-on-duplicate.d.ts → on-duplicate.d.ts} +1 -1
- package/types/enums/project-key-scopes.d.ts +3 -0
- package/types/enums/project-policy-id.d.ts +5 -1
- package/types/enums/query-suggestion-resource.d.ts +3 -0
- package/types/enums/{site-build-runtime.d.ts → runtime.d.ts} +1 -1
- package/types/enums/{redirect-status-code.d.ts → status-code.d.ts} +1 -1
- package/types/enums/status.d.ts +3 -0
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +1490 -67
- package/types/services/account.d.ts +2 -2
- package/types/services/advisor.d.ts +123 -0
- package/types/services/apps.d.ts +302 -0
- package/types/services/compute.d.ts +1074 -0
- package/types/services/databases.d.ts +24 -24
- package/types/services/documents-db.d.ts +4 -1
- package/types/services/functions.d.ts +13 -13
- package/types/services/health.d.ts +8 -0
- package/types/services/messaging.d.ts +92 -0
- package/types/services/migrations.d.ts +13 -13
- package/types/services/organizations.d.ts +13 -13
- package/types/services/project.d.ts +96 -7
- package/types/services/projects.d.ts +5 -5
- package/types/services/proxy.d.ts +5 -5
- package/types/services/sites.d.ts +27 -27
- package/types/services/tables-db.d.ts +28 -25
- package/types/services/vectors-db.d.ts +4 -1
- package/types/enums/project-status.d.ts +0 -3
|
@@ -742,7 +742,7 @@ export declare class Account {
|
|
|
742
742
|
* Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
|
|
743
743
|
*
|
|
744
744
|
* @param {string} params.password - New user password. Must be at least 8 chars.
|
|
745
|
-
* @param {string} params.oldPassword - Current user password.
|
|
745
|
+
* @param {string} params.oldPassword - Current user password. Max length: 256 chars.
|
|
746
746
|
* @throws {AppwriteException}
|
|
747
747
|
* @returns {Promise<Models.User<Preferences>>}
|
|
748
748
|
*/
|
|
@@ -754,7 +754,7 @@ export declare class Account {
|
|
|
754
754
|
* Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
|
|
755
755
|
*
|
|
756
756
|
* @param {string} password - New user password. Must be at least 8 chars.
|
|
757
|
-
* @param {string} oldPassword - Current user password.
|
|
757
|
+
* @param {string} oldPassword - Current user password. Max length: 256 chars.
|
|
758
758
|
* @throws {AppwriteException}
|
|
759
759
|
* @returns {Promise<Models.User<Preferences>>}
|
|
760
760
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
export declare class Advisor {
|
|
4
|
+
client: Client;
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* Get a list of all the project's analyzer reports. You can use the query params to filter your results.
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: appId, type, targetType, target, analyzedAt
|
|
11
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
12
|
+
* @throws {AppwriteException}
|
|
13
|
+
* @returns {Promise<Models.ReportList>}
|
|
14
|
+
*/
|
|
15
|
+
listReports(params?: {
|
|
16
|
+
queries?: string[];
|
|
17
|
+
total?: boolean;
|
|
18
|
+
}): Promise<Models.ReportList>;
|
|
19
|
+
/**
|
|
20
|
+
* Get a list of all the project's analyzer reports. You can use the query params to filter your results.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: appId, type, targetType, target, analyzedAt
|
|
24
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
25
|
+
* @throws {AppwriteException}
|
|
26
|
+
* @returns {Promise<Models.ReportList>}
|
|
27
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
28
|
+
*/
|
|
29
|
+
listReports(queries?: string[], total?: boolean): Promise<Models.ReportList>;
|
|
30
|
+
/**
|
|
31
|
+
* Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced.
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* @param {string} params.reportId - Report ID.
|
|
35
|
+
* @throws {AppwriteException}
|
|
36
|
+
* @returns {Promise<Models.Report>}
|
|
37
|
+
*/
|
|
38
|
+
getReport(params: {
|
|
39
|
+
reportId: string;
|
|
40
|
+
}): Promise<Models.Report>;
|
|
41
|
+
/**
|
|
42
|
+
* Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @param {string} reportId - Report ID.
|
|
46
|
+
* @throws {AppwriteException}
|
|
47
|
+
* @returns {Promise<Models.Report>}
|
|
48
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
49
|
+
*/
|
|
50
|
+
getReport(reportId: string): Promise<Models.Report>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* @param {string} params.reportId - Report ID.
|
|
56
|
+
* @throws {AppwriteException}
|
|
57
|
+
* @returns {Promise<{}>}
|
|
58
|
+
*/
|
|
59
|
+
deleteReport(params: {
|
|
60
|
+
reportId: string;
|
|
61
|
+
}): Promise<{}>;
|
|
62
|
+
/**
|
|
63
|
+
* Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker.
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* @param {string} reportId - Report ID.
|
|
67
|
+
* @throws {AppwriteException}
|
|
68
|
+
* @returns {Promise<{}>}
|
|
69
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
70
|
+
*/
|
|
71
|
+
deleteReport(reportId: string): Promise<{}>;
|
|
72
|
+
/**
|
|
73
|
+
* List the insights produced under a single analyzer report. You can use the query params to filter your results further.
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* @param {string} params.reportId - Parent report ID.
|
|
77
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy
|
|
78
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
79
|
+
* @throws {AppwriteException}
|
|
80
|
+
* @returns {Promise<Models.InsightList>}
|
|
81
|
+
*/
|
|
82
|
+
listInsights(params: {
|
|
83
|
+
reportId: string;
|
|
84
|
+
queries?: string[];
|
|
85
|
+
total?: boolean;
|
|
86
|
+
}): Promise<Models.InsightList>;
|
|
87
|
+
/**
|
|
88
|
+
* List the insights produced under a single analyzer report. You can use the query params to filter your results further.
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @param {string} reportId - Parent report ID.
|
|
92
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy
|
|
93
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
94
|
+
* @throws {AppwriteException}
|
|
95
|
+
* @returns {Promise<Models.InsightList>}
|
|
96
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
97
|
+
*/
|
|
98
|
+
listInsights(reportId: string, queries?: string[], total?: boolean): Promise<Models.InsightList>;
|
|
99
|
+
/**
|
|
100
|
+
* Get an insight by its unique ID, scoped to its parent report.
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
* @param {string} params.reportId - Parent report ID.
|
|
104
|
+
* @param {string} params.insightId - Insight ID.
|
|
105
|
+
* @throws {AppwriteException}
|
|
106
|
+
* @returns {Promise<Models.Insight>}
|
|
107
|
+
*/
|
|
108
|
+
getInsight(params: {
|
|
109
|
+
reportId: string;
|
|
110
|
+
insightId: string;
|
|
111
|
+
}): Promise<Models.Insight>;
|
|
112
|
+
/**
|
|
113
|
+
* Get an insight by its unique ID, scoped to its parent report.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @param {string} reportId - Parent report ID.
|
|
117
|
+
* @param {string} insightId - Insight ID.
|
|
118
|
+
* @throws {AppwriteException}
|
|
119
|
+
* @returns {Promise<Models.Insight>}
|
|
120
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
121
|
+
*/
|
|
122
|
+
getInsight(reportId: string, insightId: string): Promise<Models.Insight>;
|
|
123
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
export declare class Apps {
|
|
4
|
+
client: Client;
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List applications.
|
|
8
|
+
*
|
|
9
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
10
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
11
|
+
* @throws {AppwriteException}
|
|
12
|
+
* @returns {Promise<Models.AppsList>}
|
|
13
|
+
*/
|
|
14
|
+
list(params?: {
|
|
15
|
+
queries?: string[];
|
|
16
|
+
total?: boolean;
|
|
17
|
+
}): Promise<Models.AppsList>;
|
|
18
|
+
/**
|
|
19
|
+
* List applications.
|
|
20
|
+
*
|
|
21
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
22
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
23
|
+
* @throws {AppwriteException}
|
|
24
|
+
* @returns {Promise<Models.AppsList>}
|
|
25
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
26
|
+
*/
|
|
27
|
+
list(queries?: string[], total?: boolean): Promise<Models.AppsList>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a new application.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} params.appId - Application 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.
|
|
32
|
+
* @param {string} params.name - Application name.
|
|
33
|
+
* @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
|
|
34
|
+
* @param {string} params.description - Application description shown to users during OAuth2 consent.
|
|
35
|
+
* @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent.
|
|
36
|
+
* @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent.
|
|
37
|
+
* @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
|
|
38
|
+
* @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent.
|
|
39
|
+
* @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
|
|
40
|
+
* @param {boolean} params.enabled - Is application enabled?
|
|
41
|
+
* @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
|
|
42
|
+
* @param {boolean} params.deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
|
|
43
|
+
* @param {string} params.teamId - Team unique ID.
|
|
44
|
+
* @throws {AppwriteException}
|
|
45
|
+
* @returns {Promise<Models.App>}
|
|
46
|
+
*/
|
|
47
|
+
create(params: {
|
|
48
|
+
appId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
redirectUris: string[];
|
|
51
|
+
description?: string;
|
|
52
|
+
clientUri?: string;
|
|
53
|
+
logoUri?: string;
|
|
54
|
+
privacyPolicyUrl?: string;
|
|
55
|
+
termsUrl?: string;
|
|
56
|
+
contacts?: string[];
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
type?: string;
|
|
59
|
+
deviceFlow?: boolean;
|
|
60
|
+
teamId?: string;
|
|
61
|
+
}): Promise<Models.App>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a new application.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} appId - Application 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.
|
|
66
|
+
* @param {string} name - Application name.
|
|
67
|
+
* @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
|
|
68
|
+
* @param {string} description - Application description shown to users during OAuth2 consent.
|
|
69
|
+
* @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent.
|
|
70
|
+
* @param {string} logoUri - Application logo URL shown to users during OAuth2 consent.
|
|
71
|
+
* @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
|
|
72
|
+
* @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent.
|
|
73
|
+
* @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
|
|
74
|
+
* @param {boolean} enabled - Is application enabled?
|
|
75
|
+
* @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
|
|
76
|
+
* @param {boolean} deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
|
|
77
|
+
* @param {string} teamId - Team unique ID.
|
|
78
|
+
* @throws {AppwriteException}
|
|
79
|
+
* @returns {Promise<Models.App>}
|
|
80
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
81
|
+
*/
|
|
82
|
+
create(appId: string, name: string, redirectUris: string[], description?: string, clientUri?: string, logoUri?: string, privacyPolicyUrl?: string, termsUrl?: string, contacts?: string[], enabled?: boolean, type?: string, deviceFlow?: boolean, teamId?: string): Promise<Models.App>;
|
|
83
|
+
/**
|
|
84
|
+
* Get an application by its unique ID.
|
|
85
|
+
*
|
|
86
|
+
* @param {string} params.appId - Application unique ID.
|
|
87
|
+
* @throws {AppwriteException}
|
|
88
|
+
* @returns {Promise<Models.App>}
|
|
89
|
+
*/
|
|
90
|
+
get(params: {
|
|
91
|
+
appId: string;
|
|
92
|
+
}): Promise<Models.App>;
|
|
93
|
+
/**
|
|
94
|
+
* Get an application by its unique ID.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} appId - Application unique ID.
|
|
97
|
+
* @throws {AppwriteException}
|
|
98
|
+
* @returns {Promise<Models.App>}
|
|
99
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
100
|
+
*/
|
|
101
|
+
get(appId: string): Promise<Models.App>;
|
|
102
|
+
/**
|
|
103
|
+
* Update an application by its unique ID.
|
|
104
|
+
*
|
|
105
|
+
* @param {string} params.appId - Application unique ID.
|
|
106
|
+
* @param {string} params.name - Application name.
|
|
107
|
+
* @param {string} params.description - Application description shown to users during OAuth2 consent.
|
|
108
|
+
* @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent.
|
|
109
|
+
* @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent.
|
|
110
|
+
* @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
|
|
111
|
+
* @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent.
|
|
112
|
+
* @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
|
|
113
|
+
* @param {boolean} params.enabled - Is application enabled?
|
|
114
|
+
* @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
|
|
115
|
+
* @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
|
|
116
|
+
* @param {boolean} params.deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
|
|
117
|
+
* @throws {AppwriteException}
|
|
118
|
+
* @returns {Promise<Models.App>}
|
|
119
|
+
*/
|
|
120
|
+
update(params: {
|
|
121
|
+
appId: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
clientUri?: string;
|
|
125
|
+
logoUri?: string;
|
|
126
|
+
privacyPolicyUrl?: string;
|
|
127
|
+
termsUrl?: string;
|
|
128
|
+
contacts?: string[];
|
|
129
|
+
enabled?: boolean;
|
|
130
|
+
redirectUris?: string[];
|
|
131
|
+
type?: string;
|
|
132
|
+
deviceFlow?: boolean;
|
|
133
|
+
}): Promise<Models.App>;
|
|
134
|
+
/**
|
|
135
|
+
* Update an application by its unique ID.
|
|
136
|
+
*
|
|
137
|
+
* @param {string} appId - Application unique ID.
|
|
138
|
+
* @param {string} name - Application name.
|
|
139
|
+
* @param {string} description - Application description shown to users during OAuth2 consent.
|
|
140
|
+
* @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent.
|
|
141
|
+
* @param {string} logoUri - Application logo URL shown to users during OAuth2 consent.
|
|
142
|
+
* @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
|
|
143
|
+
* @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent.
|
|
144
|
+
* @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
|
|
145
|
+
* @param {boolean} enabled - Is application enabled?
|
|
146
|
+
* @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
|
|
147
|
+
* @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
|
|
148
|
+
* @param {boolean} deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
|
|
149
|
+
* @throws {AppwriteException}
|
|
150
|
+
* @returns {Promise<Models.App>}
|
|
151
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
152
|
+
*/
|
|
153
|
+
update(appId: string, name: string, description?: string, clientUri?: string, logoUri?: string, privacyPolicyUrl?: string, termsUrl?: string, contacts?: string[], enabled?: boolean, redirectUris?: string[], type?: string, deviceFlow?: boolean): Promise<Models.App>;
|
|
154
|
+
/**
|
|
155
|
+
* Delete an application by its unique ID.
|
|
156
|
+
*
|
|
157
|
+
* @param {string} params.appId - Application unique ID.
|
|
158
|
+
* @throws {AppwriteException}
|
|
159
|
+
* @returns {Promise<{}>}
|
|
160
|
+
*/
|
|
161
|
+
delete(params: {
|
|
162
|
+
appId: string;
|
|
163
|
+
}): Promise<{}>;
|
|
164
|
+
/**
|
|
165
|
+
* Delete an application by its unique ID.
|
|
166
|
+
*
|
|
167
|
+
* @param {string} appId - Application unique ID.
|
|
168
|
+
* @throws {AppwriteException}
|
|
169
|
+
* @returns {Promise<{}>}
|
|
170
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
171
|
+
*/
|
|
172
|
+
delete(appId: string): Promise<{}>;
|
|
173
|
+
/**
|
|
174
|
+
* List client secrets for an application.
|
|
175
|
+
*
|
|
176
|
+
* @param {string} params.appId - Application unique ID.
|
|
177
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
178
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
179
|
+
* @throws {AppwriteException}
|
|
180
|
+
* @returns {Promise<Models.AppSecretList>}
|
|
181
|
+
*/
|
|
182
|
+
listSecrets(params: {
|
|
183
|
+
appId: string;
|
|
184
|
+
queries?: string[];
|
|
185
|
+
total?: boolean;
|
|
186
|
+
}): Promise<Models.AppSecretList>;
|
|
187
|
+
/**
|
|
188
|
+
* List client secrets for an application.
|
|
189
|
+
*
|
|
190
|
+
* @param {string} appId - Application unique ID.
|
|
191
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
192
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
193
|
+
* @throws {AppwriteException}
|
|
194
|
+
* @returns {Promise<Models.AppSecretList>}
|
|
195
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
196
|
+
*/
|
|
197
|
+
listSecrets(appId: string, queries?: string[], total?: boolean): Promise<Models.AppSecretList>;
|
|
198
|
+
/**
|
|
199
|
+
* Create a new client secret for an application.
|
|
200
|
+
*
|
|
201
|
+
* @param {string} params.appId - Application unique ID.
|
|
202
|
+
* @throws {AppwriteException}
|
|
203
|
+
* @returns {Promise<Models.AppSecretPlaintext>}
|
|
204
|
+
*/
|
|
205
|
+
createSecret(params: {
|
|
206
|
+
appId: string;
|
|
207
|
+
}): Promise<Models.AppSecretPlaintext>;
|
|
208
|
+
/**
|
|
209
|
+
* Create a new client secret for an application.
|
|
210
|
+
*
|
|
211
|
+
* @param {string} appId - Application unique ID.
|
|
212
|
+
* @throws {AppwriteException}
|
|
213
|
+
* @returns {Promise<Models.AppSecretPlaintext>}
|
|
214
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
215
|
+
*/
|
|
216
|
+
createSecret(appId: string): Promise<Models.AppSecretPlaintext>;
|
|
217
|
+
/**
|
|
218
|
+
* Get an application client secret by its unique ID.
|
|
219
|
+
*
|
|
220
|
+
* @param {string} params.appId - Application unique ID.
|
|
221
|
+
* @param {string} params.secretId - Secret unique ID.
|
|
222
|
+
* @throws {AppwriteException}
|
|
223
|
+
* @returns {Promise<Models.AppSecret>}
|
|
224
|
+
*/
|
|
225
|
+
getSecret(params: {
|
|
226
|
+
appId: string;
|
|
227
|
+
secretId: string;
|
|
228
|
+
}): Promise<Models.AppSecret>;
|
|
229
|
+
/**
|
|
230
|
+
* Get an application client secret by its unique ID.
|
|
231
|
+
*
|
|
232
|
+
* @param {string} appId - Application unique ID.
|
|
233
|
+
* @param {string} secretId - Secret unique ID.
|
|
234
|
+
* @throws {AppwriteException}
|
|
235
|
+
* @returns {Promise<Models.AppSecret>}
|
|
236
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
237
|
+
*/
|
|
238
|
+
getSecret(appId: string, secretId: string): Promise<Models.AppSecret>;
|
|
239
|
+
/**
|
|
240
|
+
* Delete an application client secret by its unique ID.
|
|
241
|
+
*
|
|
242
|
+
* @param {string} params.appId - Application unique ID.
|
|
243
|
+
* @param {string} params.secretId - Secret unique ID.
|
|
244
|
+
* @throws {AppwriteException}
|
|
245
|
+
* @returns {Promise<{}>}
|
|
246
|
+
*/
|
|
247
|
+
deleteSecret(params: {
|
|
248
|
+
appId: string;
|
|
249
|
+
secretId: string;
|
|
250
|
+
}): Promise<{}>;
|
|
251
|
+
/**
|
|
252
|
+
* Delete an application client secret by its unique ID.
|
|
253
|
+
*
|
|
254
|
+
* @param {string} appId - Application unique ID.
|
|
255
|
+
* @param {string} secretId - Secret unique ID.
|
|
256
|
+
* @throws {AppwriteException}
|
|
257
|
+
* @returns {Promise<{}>}
|
|
258
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
259
|
+
*/
|
|
260
|
+
deleteSecret(appId: string, secretId: string): Promise<{}>;
|
|
261
|
+
/**
|
|
262
|
+
* Transfer an application to another team by its unique ID.
|
|
263
|
+
*
|
|
264
|
+
* @param {string} params.appId - Application unique ID.
|
|
265
|
+
* @param {string} params.teamId - Team ID of the team to transfer application to.
|
|
266
|
+
* @throws {AppwriteException}
|
|
267
|
+
* @returns {Promise<Models.App>}
|
|
268
|
+
*/
|
|
269
|
+
updateTeam(params: {
|
|
270
|
+
appId: string;
|
|
271
|
+
teamId: string;
|
|
272
|
+
}): Promise<Models.App>;
|
|
273
|
+
/**
|
|
274
|
+
* Transfer an application to another team by its unique ID.
|
|
275
|
+
*
|
|
276
|
+
* @param {string} appId - Application unique ID.
|
|
277
|
+
* @param {string} teamId - Team ID of the team to transfer application to.
|
|
278
|
+
* @throws {AppwriteException}
|
|
279
|
+
* @returns {Promise<Models.App>}
|
|
280
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
281
|
+
*/
|
|
282
|
+
updateTeam(appId: string, teamId: string): Promise<Models.App>;
|
|
283
|
+
/**
|
|
284
|
+
* Revoke all tokens for an application by its unique ID.
|
|
285
|
+
*
|
|
286
|
+
* @param {string} params.appId - Application unique ID.
|
|
287
|
+
* @throws {AppwriteException}
|
|
288
|
+
* @returns {Promise<{}>}
|
|
289
|
+
*/
|
|
290
|
+
deleteTokens(params: {
|
|
291
|
+
appId: string;
|
|
292
|
+
}): Promise<{}>;
|
|
293
|
+
/**
|
|
294
|
+
* Revoke all tokens for an application by its unique ID.
|
|
295
|
+
*
|
|
296
|
+
* @param {string} appId - Application unique ID.
|
|
297
|
+
* @throws {AppwriteException}
|
|
298
|
+
* @returns {Promise<{}>}
|
|
299
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
300
|
+
*/
|
|
301
|
+
deleteTokens(appId: string): Promise<{}>;
|
|
302
|
+
}
|