@appwrite.io/console 13.1.0 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +4257 -690
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +4255 -691
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +4259 -692
- 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 +2 -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 +1524 -19
- package/types/services/account.d.ts +2 -2
- package/types/services/advisor.d.ts +123 -0
- package/types/services/apps.d.ts +266 -0
- package/types/services/compute.d.ts +1171 -0
- 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 +5 -5
- package/types/services/project.d.ts +77 -6
- 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/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,266 @@
|
|
|
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 {boolean} params.enabled - Is application enabled?
|
|
35
|
+
* @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
|
|
36
|
+
* @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`.
|
|
37
|
+
* @param {string} params.teamId - Team unique ID.
|
|
38
|
+
* @throws {AppwriteException}
|
|
39
|
+
* @returns {Promise<Models.App>}
|
|
40
|
+
*/
|
|
41
|
+
create(params: {
|
|
42
|
+
appId: string;
|
|
43
|
+
name: string;
|
|
44
|
+
redirectUris: string[];
|
|
45
|
+
enabled?: boolean;
|
|
46
|
+
internal?: boolean;
|
|
47
|
+
type?: string;
|
|
48
|
+
teamId?: string;
|
|
49
|
+
}): Promise<Models.App>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a new application.
|
|
52
|
+
*
|
|
53
|
+
* @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.
|
|
54
|
+
* @param {string} name - Application name.
|
|
55
|
+
* @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
|
|
56
|
+
* @param {boolean} enabled - Is application enabled?
|
|
57
|
+
* @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
|
|
58
|
+
* @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`.
|
|
59
|
+
* @param {string} teamId - Team unique ID.
|
|
60
|
+
* @throws {AppwriteException}
|
|
61
|
+
* @returns {Promise<Models.App>}
|
|
62
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
63
|
+
*/
|
|
64
|
+
create(appId: string, name: string, redirectUris: string[], enabled?: boolean, internal?: boolean, type?: string, teamId?: string): Promise<Models.App>;
|
|
65
|
+
/**
|
|
66
|
+
* Get an application by its unique ID.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} params.appId - Application unique ID.
|
|
69
|
+
* @throws {AppwriteException}
|
|
70
|
+
* @returns {Promise<Models.App>}
|
|
71
|
+
*/
|
|
72
|
+
get(params: {
|
|
73
|
+
appId: string;
|
|
74
|
+
}): Promise<Models.App>;
|
|
75
|
+
/**
|
|
76
|
+
* Get an application by its unique ID.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} appId - Application unique ID.
|
|
79
|
+
* @throws {AppwriteException}
|
|
80
|
+
* @returns {Promise<Models.App>}
|
|
81
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
82
|
+
*/
|
|
83
|
+
get(appId: string): Promise<Models.App>;
|
|
84
|
+
/**
|
|
85
|
+
* Update an application by its unique ID.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} params.appId - Application unique ID.
|
|
88
|
+
* @param {string} params.name - Application name.
|
|
89
|
+
* @param {boolean} params.enabled - Is application enabled?
|
|
90
|
+
* @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
|
|
91
|
+
* @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
|
|
92
|
+
* @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`.
|
|
93
|
+
* @throws {AppwriteException}
|
|
94
|
+
* @returns {Promise<Models.App>}
|
|
95
|
+
*/
|
|
96
|
+
update(params: {
|
|
97
|
+
appId: string;
|
|
98
|
+
name: string;
|
|
99
|
+
enabled?: boolean;
|
|
100
|
+
internal?: boolean;
|
|
101
|
+
redirectUris?: string[];
|
|
102
|
+
type?: string;
|
|
103
|
+
}): Promise<Models.App>;
|
|
104
|
+
/**
|
|
105
|
+
* Update an application by its unique ID.
|
|
106
|
+
*
|
|
107
|
+
* @param {string} appId - Application unique ID.
|
|
108
|
+
* @param {string} name - Application name.
|
|
109
|
+
* @param {boolean} enabled - Is application enabled?
|
|
110
|
+
* @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
|
|
111
|
+
* @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
|
|
112
|
+
* @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`.
|
|
113
|
+
* @throws {AppwriteException}
|
|
114
|
+
* @returns {Promise<Models.App>}
|
|
115
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
116
|
+
*/
|
|
117
|
+
update(appId: string, name: string, enabled?: boolean, internal?: boolean, redirectUris?: string[], type?: string): Promise<Models.App>;
|
|
118
|
+
/**
|
|
119
|
+
* Delete an application by its unique ID.
|
|
120
|
+
*
|
|
121
|
+
* @param {string} params.appId - Application unique ID.
|
|
122
|
+
* @throws {AppwriteException}
|
|
123
|
+
* @returns {Promise<{}>}
|
|
124
|
+
*/
|
|
125
|
+
delete(params: {
|
|
126
|
+
appId: string;
|
|
127
|
+
}): Promise<{}>;
|
|
128
|
+
/**
|
|
129
|
+
* Delete an application by its unique ID.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} appId - Application unique ID.
|
|
132
|
+
* @throws {AppwriteException}
|
|
133
|
+
* @returns {Promise<{}>}
|
|
134
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
135
|
+
*/
|
|
136
|
+
delete(appId: string): Promise<{}>;
|
|
137
|
+
/**
|
|
138
|
+
* List client secrets for an application.
|
|
139
|
+
*
|
|
140
|
+
* @param {string} params.appId - Application unique ID.
|
|
141
|
+
* @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.
|
|
142
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
143
|
+
* @throws {AppwriteException}
|
|
144
|
+
* @returns {Promise<Models.AppSecretList>}
|
|
145
|
+
*/
|
|
146
|
+
listSecrets(params: {
|
|
147
|
+
appId: string;
|
|
148
|
+
queries?: string[];
|
|
149
|
+
total?: boolean;
|
|
150
|
+
}): Promise<Models.AppSecretList>;
|
|
151
|
+
/**
|
|
152
|
+
* List client secrets for an application.
|
|
153
|
+
*
|
|
154
|
+
* @param {string} appId - Application unique ID.
|
|
155
|
+
* @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.
|
|
156
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
157
|
+
* @throws {AppwriteException}
|
|
158
|
+
* @returns {Promise<Models.AppSecretList>}
|
|
159
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
160
|
+
*/
|
|
161
|
+
listSecrets(appId: string, queries?: string[], total?: boolean): Promise<Models.AppSecretList>;
|
|
162
|
+
/**
|
|
163
|
+
* Create a new client secret for an application.
|
|
164
|
+
*
|
|
165
|
+
* @param {string} params.appId - Application unique ID.
|
|
166
|
+
* @throws {AppwriteException}
|
|
167
|
+
* @returns {Promise<Models.AppSecretPlaintext>}
|
|
168
|
+
*/
|
|
169
|
+
createSecret(params: {
|
|
170
|
+
appId: string;
|
|
171
|
+
}): Promise<Models.AppSecretPlaintext>;
|
|
172
|
+
/**
|
|
173
|
+
* Create a new client secret for an application.
|
|
174
|
+
*
|
|
175
|
+
* @param {string} appId - Application unique ID.
|
|
176
|
+
* @throws {AppwriteException}
|
|
177
|
+
* @returns {Promise<Models.AppSecretPlaintext>}
|
|
178
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
179
|
+
*/
|
|
180
|
+
createSecret(appId: string): Promise<Models.AppSecretPlaintext>;
|
|
181
|
+
/**
|
|
182
|
+
* Get an application client secret by its unique ID.
|
|
183
|
+
*
|
|
184
|
+
* @param {string} params.appId - Application unique ID.
|
|
185
|
+
* @param {string} params.secretId - Secret unique ID.
|
|
186
|
+
* @throws {AppwriteException}
|
|
187
|
+
* @returns {Promise<Models.AppSecret>}
|
|
188
|
+
*/
|
|
189
|
+
getSecret(params: {
|
|
190
|
+
appId: string;
|
|
191
|
+
secretId: string;
|
|
192
|
+
}): Promise<Models.AppSecret>;
|
|
193
|
+
/**
|
|
194
|
+
* Get an application client secret by its unique ID.
|
|
195
|
+
*
|
|
196
|
+
* @param {string} appId - Application unique ID.
|
|
197
|
+
* @param {string} secretId - Secret unique ID.
|
|
198
|
+
* @throws {AppwriteException}
|
|
199
|
+
* @returns {Promise<Models.AppSecret>}
|
|
200
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
201
|
+
*/
|
|
202
|
+
getSecret(appId: string, secretId: string): Promise<Models.AppSecret>;
|
|
203
|
+
/**
|
|
204
|
+
* Delete an application client secret by its unique ID.
|
|
205
|
+
*
|
|
206
|
+
* @param {string} params.appId - Application unique ID.
|
|
207
|
+
* @param {string} params.secretId - Secret unique ID.
|
|
208
|
+
* @throws {AppwriteException}
|
|
209
|
+
* @returns {Promise<{}>}
|
|
210
|
+
*/
|
|
211
|
+
deleteSecret(params: {
|
|
212
|
+
appId: string;
|
|
213
|
+
secretId: string;
|
|
214
|
+
}): Promise<{}>;
|
|
215
|
+
/**
|
|
216
|
+
* Delete an application client secret by its unique ID.
|
|
217
|
+
*
|
|
218
|
+
* @param {string} appId - Application unique ID.
|
|
219
|
+
* @param {string} secretId - Secret unique ID.
|
|
220
|
+
* @throws {AppwriteException}
|
|
221
|
+
* @returns {Promise<{}>}
|
|
222
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
223
|
+
*/
|
|
224
|
+
deleteSecret(appId: string, secretId: string): Promise<{}>;
|
|
225
|
+
/**
|
|
226
|
+
* Transfer an application to another team by its unique ID.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} params.appId - Application unique ID.
|
|
229
|
+
* @param {string} params.teamId - Team ID of the team to transfer application to.
|
|
230
|
+
* @throws {AppwriteException}
|
|
231
|
+
* @returns {Promise<Models.App>}
|
|
232
|
+
*/
|
|
233
|
+
updateTeam(params: {
|
|
234
|
+
appId: string;
|
|
235
|
+
teamId: string;
|
|
236
|
+
}): Promise<Models.App>;
|
|
237
|
+
/**
|
|
238
|
+
* Transfer an application to another team by its unique ID.
|
|
239
|
+
*
|
|
240
|
+
* @param {string} appId - Application unique ID.
|
|
241
|
+
* @param {string} teamId - Team ID of the team to transfer application to.
|
|
242
|
+
* @throws {AppwriteException}
|
|
243
|
+
* @returns {Promise<Models.App>}
|
|
244
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
245
|
+
*/
|
|
246
|
+
updateTeam(appId: string, teamId: string): Promise<Models.App>;
|
|
247
|
+
/**
|
|
248
|
+
* Revoke all tokens for an application by its unique ID.
|
|
249
|
+
*
|
|
250
|
+
* @param {string} params.appId - Application unique ID.
|
|
251
|
+
* @throws {AppwriteException}
|
|
252
|
+
* @returns {Promise<{}>}
|
|
253
|
+
*/
|
|
254
|
+
deleteTokens(params: {
|
|
255
|
+
appId: string;
|
|
256
|
+
}): Promise<{}>;
|
|
257
|
+
/**
|
|
258
|
+
* Revoke all tokens for an application by its unique ID.
|
|
259
|
+
*
|
|
260
|
+
* @param {string} appId - Application unique ID.
|
|
261
|
+
* @throws {AppwriteException}
|
|
262
|
+
* @returns {Promise<{}>}
|
|
263
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
264
|
+
*/
|
|
265
|
+
deleteTokens(appId: string): Promise<{}>;
|
|
266
|
+
}
|