@appwrite.io/console 1.0.1 → 1.1.0-rc.2
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 +3 -3
- package/dist/cjs/sdk.js +3565 -2411
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3564 -2412
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3565 -2411
- package/docs/examples/{functions/list-specifications.md → account/create-payment-method.md} +3 -3
- package/docs/examples/account/delete-mfa-authenticator.md +2 -1
- package/docs/examples/account/delete-payment-method.md +13 -0
- package/docs/examples/account/get-billing-address.md +13 -0
- package/docs/examples/account/get-payment-method.md +13 -0
- package/docs/examples/{functions/get-template.md → account/list-billing-addresses.md} +4 -4
- package/docs/examples/account/list-credits.md +14 -0
- package/docs/examples/account/list-invoices.md +13 -0
- package/docs/examples/account/list-payment-methods.md +13 -0
- package/docs/examples/account/update-payment-method-mandate-options.md +13 -0
- package/docs/examples/account/update-payment-method-provider.md +15 -0
- package/docs/examples/account/update-payment-method.md +15 -0
- package/docs/examples/backups/create-archive.md +14 -0
- package/docs/examples/backups/create-policy.md +19 -0
- package/docs/examples/backups/create-restoration.md +16 -0
- package/docs/examples/backups/delete-archive.md +13 -0
- package/docs/examples/backups/delete-policy.md +13 -0
- package/docs/examples/backups/get-archive.md +13 -0
- package/docs/examples/backups/get-policy.md +13 -0
- package/docs/examples/backups/get-restoration.md +13 -0
- package/docs/examples/backups/list-archives.md +13 -0
- package/docs/examples/backups/list-policies.md +13 -0
- package/docs/examples/backups/list-restorations.md +13 -0
- package/docs/examples/backups/update-policy.md +17 -0
- package/docs/examples/console/create-source.md +17 -0
- package/docs/examples/console/get-copon.md +13 -0
- package/docs/examples/console/plans.md +11 -0
- package/docs/examples/console/regions.md +11 -0
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -2
- package/docs/examples/functions/create.md +1 -3
- package/docs/examples/functions/{get-deployment-download.md → download-deployment.md} +1 -1
- package/docs/examples/functions/update.md +1 -3
- package/docs/examples/organizations/add-credit.md +14 -0
- package/docs/examples/organizations/create-invoice-payment.md +15 -0
- package/docs/examples/organizations/create.md +17 -0
- package/docs/examples/organizations/delete-backup-payment-method.md +13 -0
- package/docs/examples/organizations/delete-billing-address.md +13 -0
- package/docs/examples/organizations/delete-default-payment-method.md +13 -0
- package/docs/examples/organizations/delete.md +13 -0
- package/docs/examples/organizations/get-aggregation.md +14 -0
- package/docs/examples/organizations/get-billing-address.md +14 -0
- package/docs/examples/organizations/get-credit.md +14 -0
- package/docs/examples/organizations/get-invoice-download.md +14 -0
- package/docs/examples/organizations/get-invoice-view.md +14 -0
- package/docs/examples/organizations/get-invoice.md +14 -0
- package/docs/examples/organizations/get-payment-method.md +14 -0
- package/docs/examples/organizations/get-plan.md +13 -0
- package/docs/examples/organizations/get-usage.md +15 -0
- package/docs/examples/organizations/list-aggregations.md +14 -0
- package/docs/examples/organizations/list-invoices.md +14 -0
- package/docs/examples/organizations/list.md +14 -0
- package/docs/examples/organizations/set-backup-payment-method.md +14 -0
- package/docs/examples/organizations/set-billing-address.md +14 -0
- package/docs/examples/organizations/set-billing-email.md +14 -0
- package/docs/examples/organizations/set-billing-tax-id.md +14 -0
- package/docs/examples/organizations/set-default-payment-method.md +14 -0
- package/docs/examples/organizations/update-budget.md +15 -0
- package/docs/examples/organizations/update-plan.md +16 -0
- package/package.json +1 -1
- package/src/client.ts +2 -2
- package/src/enums/billing-plan.ts +5 -0
- package/src/enums/email-template-type.ts +0 -2
- package/src/enums/platform-type.ts +0 -2
- package/src/enums/runtime.ts +0 -1
- package/src/index.ts +4 -1
- package/src/models.ts +956 -282
- package/src/services/account.ts +345 -2
- package/src/services/backups.ts +425 -0
- package/src/services/console.ts +120 -0
- package/src/services/functions.ts +14 -195
- package/src/services/organizations.ts +896 -0
- package/src/services/projects.ts +1 -110
- package/src/services/users.ts +0 -37
- package/src/services/vcs.ts +0 -36
- package/types/enums/billing-plan.d.ts +5 -0
- package/types/enums/email-template-type.d.ts +1 -3
- package/types/enums/platform-type.d.ts +1 -3
- package/types/enums/runtime.d.ts +1 -2
- package/types/index.d.ts +4 -1
- package/types/models.d.ts +956 -282
- package/types/services/account.d.ts +105 -1
- package/types/services/backups.d.ts +128 -0
- package/types/services/console.d.ts +38 -0
- package/types/services/functions.d.ts +8 -67
- package/types/services/organizations.d.ts +273 -0
- package/types/services/projects.d.ts +1 -32
- package/types/services/users.d.ts +0 -12
- package/types/services/vcs.d.ts +0 -11
- package/docs/examples/functions/delete-execution.md +0 -14
- package/docs/examples/functions/list-templates.md +0 -16
- package/docs/examples/functions/update-deployment-build.md +0 -14
- package/docs/examples/projects/create-j-w-t.md +0 -15
- package/docs/examples/projects/update-mock-numbers.md +0 -14
- package/docs/examples/projects/update-session-alerts.md +0 -14
- package/docs/examples/users/create-j-w-t.md +0 -15
- package/docs/examples/vcs/get-repository-contents.md +0 -15
package/src/models.ts
CHANGED
|
@@ -171,19 +171,6 @@ export namespace Models {
|
|
|
171
171
|
*/
|
|
172
172
|
functions: Function[];
|
|
173
173
|
}
|
|
174
|
-
/**
|
|
175
|
-
* Function Templates List
|
|
176
|
-
*/
|
|
177
|
-
export type TemplateFunctionList = {
|
|
178
|
-
/**
|
|
179
|
-
* Total number of templates documents that matched your query.
|
|
180
|
-
*/
|
|
181
|
-
total: number;
|
|
182
|
-
/**
|
|
183
|
-
* List of templates.
|
|
184
|
-
*/
|
|
185
|
-
templates: TemplateFunction[];
|
|
186
|
-
}
|
|
187
174
|
/**
|
|
188
175
|
* Installations List
|
|
189
176
|
*/
|
|
@@ -509,32 +496,6 @@ export namespace Models {
|
|
|
509
496
|
*/
|
|
510
497
|
projects: FirebaseProject[];
|
|
511
498
|
}
|
|
512
|
-
/**
|
|
513
|
-
* Specifications List
|
|
514
|
-
*/
|
|
515
|
-
export type SpecificationList = {
|
|
516
|
-
/**
|
|
517
|
-
* Total number of specifications documents that matched your query.
|
|
518
|
-
*/
|
|
519
|
-
total: number;
|
|
520
|
-
/**
|
|
521
|
-
* List of specifications.
|
|
522
|
-
*/
|
|
523
|
-
specifications: Specification[];
|
|
524
|
-
}
|
|
525
|
-
/**
|
|
526
|
-
* VCS Content List
|
|
527
|
-
*/
|
|
528
|
-
export type VcsContentList = {
|
|
529
|
-
/**
|
|
530
|
-
* Total number of contents documents that matched your query.
|
|
531
|
-
*/
|
|
532
|
-
total: number;
|
|
533
|
-
/**
|
|
534
|
-
* List of contents.
|
|
535
|
-
*/
|
|
536
|
-
contents: VcsContent[];
|
|
537
|
-
}
|
|
538
499
|
/**
|
|
539
500
|
* Database
|
|
540
501
|
*/
|
|
@@ -1832,10 +1793,6 @@ export namespace Models {
|
|
|
1832
1793
|
* Function's active deployment ID.
|
|
1833
1794
|
*/
|
|
1834
1795
|
deployment: string;
|
|
1835
|
-
/**
|
|
1836
|
-
* Allowed permission scopes.
|
|
1837
|
-
*/
|
|
1838
|
-
scopes: string[];
|
|
1839
1796
|
/**
|
|
1840
1797
|
* Function variables.
|
|
1841
1798
|
*/
|
|
@@ -1884,133 +1841,6 @@ export namespace Models {
|
|
|
1884
1841
|
* Is VCS (Version Control System) connection is in silent mode? When in silence mode, no comments will be posted on the repository pull or merge requests
|
|
1885
1842
|
*/
|
|
1886
1843
|
providerSilentMode: boolean;
|
|
1887
|
-
/**
|
|
1888
|
-
* Machine specification for builds and executions.
|
|
1889
|
-
*/
|
|
1890
|
-
specification: string;
|
|
1891
|
-
}
|
|
1892
|
-
/**
|
|
1893
|
-
* Template Function
|
|
1894
|
-
*/
|
|
1895
|
-
export type TemplateFunction = {
|
|
1896
|
-
/**
|
|
1897
|
-
* Function Template Icon.
|
|
1898
|
-
*/
|
|
1899
|
-
icon: string;
|
|
1900
|
-
/**
|
|
1901
|
-
* Function Template ID.
|
|
1902
|
-
*/
|
|
1903
|
-
id: string;
|
|
1904
|
-
/**
|
|
1905
|
-
* Function Template Name.
|
|
1906
|
-
*/
|
|
1907
|
-
name: string;
|
|
1908
|
-
/**
|
|
1909
|
-
* Function Template Tagline.
|
|
1910
|
-
*/
|
|
1911
|
-
tagline: string;
|
|
1912
|
-
/**
|
|
1913
|
-
* Execution permissions.
|
|
1914
|
-
*/
|
|
1915
|
-
permissions: string[];
|
|
1916
|
-
/**
|
|
1917
|
-
* Function trigger events.
|
|
1918
|
-
*/
|
|
1919
|
-
events: string[];
|
|
1920
|
-
/**
|
|
1921
|
-
* Function execution schedult in CRON format.
|
|
1922
|
-
*/
|
|
1923
|
-
cron: string;
|
|
1924
|
-
/**
|
|
1925
|
-
* Function execution timeout in seconds.
|
|
1926
|
-
*/
|
|
1927
|
-
timeout: number;
|
|
1928
|
-
/**
|
|
1929
|
-
* Function use cases.
|
|
1930
|
-
*/
|
|
1931
|
-
useCases: string[];
|
|
1932
|
-
/**
|
|
1933
|
-
* List of runtimes that can be used with this template.
|
|
1934
|
-
*/
|
|
1935
|
-
runtimes: TemplateRuntime[];
|
|
1936
|
-
/**
|
|
1937
|
-
* Function Template Instructions.
|
|
1938
|
-
*/
|
|
1939
|
-
instructions: string;
|
|
1940
|
-
/**
|
|
1941
|
-
* VCS (Version Control System) Provider.
|
|
1942
|
-
*/
|
|
1943
|
-
vcsProvider: string;
|
|
1944
|
-
/**
|
|
1945
|
-
* VCS (Version Control System) Repository ID
|
|
1946
|
-
*/
|
|
1947
|
-
providerRepositoryId: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* VCS (Version Control System) Owner.
|
|
1950
|
-
*/
|
|
1951
|
-
providerOwner: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* VCS (Version Control System) branch version (tag).
|
|
1954
|
-
*/
|
|
1955
|
-
providerVersion: string;
|
|
1956
|
-
/**
|
|
1957
|
-
* Function variables.
|
|
1958
|
-
*/
|
|
1959
|
-
variables: TemplateVariable[];
|
|
1960
|
-
/**
|
|
1961
|
-
* Function scopes.
|
|
1962
|
-
*/
|
|
1963
|
-
scopes: string[];
|
|
1964
|
-
}
|
|
1965
|
-
/**
|
|
1966
|
-
* Template Runtime
|
|
1967
|
-
*/
|
|
1968
|
-
export type TemplateRuntime = {
|
|
1969
|
-
/**
|
|
1970
|
-
* Runtime Name.
|
|
1971
|
-
*/
|
|
1972
|
-
name: string;
|
|
1973
|
-
/**
|
|
1974
|
-
* The build command used to build the deployment.
|
|
1975
|
-
*/
|
|
1976
|
-
commands: string;
|
|
1977
|
-
/**
|
|
1978
|
-
* The entrypoint file used to execute the deployment.
|
|
1979
|
-
*/
|
|
1980
|
-
entrypoint: string;
|
|
1981
|
-
/**
|
|
1982
|
-
* Path to function in VCS (Version Control System) repository
|
|
1983
|
-
*/
|
|
1984
|
-
providerRootDirectory: string;
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Template Variable
|
|
1988
|
-
*/
|
|
1989
|
-
export type TemplateVariable = {
|
|
1990
|
-
/**
|
|
1991
|
-
* Variable Name.
|
|
1992
|
-
*/
|
|
1993
|
-
name: string;
|
|
1994
|
-
/**
|
|
1995
|
-
* Variable Description.
|
|
1996
|
-
*/
|
|
1997
|
-
description: string;
|
|
1998
|
-
/**
|
|
1999
|
-
* Variable Value.
|
|
2000
|
-
*/
|
|
2001
|
-
value: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* Variable Placeholder.
|
|
2004
|
-
*/
|
|
2005
|
-
placeholder: string;
|
|
2006
|
-
/**
|
|
2007
|
-
* Is the variable required?
|
|
2008
|
-
*/
|
|
2009
|
-
required: boolean;
|
|
2010
|
-
/**
|
|
2011
|
-
* Variable Type.
|
|
2012
|
-
*/
|
|
2013
|
-
type: string;
|
|
2014
1844
|
}
|
|
2015
1845
|
/**
|
|
2016
1846
|
* Installation
|
|
@@ -2083,23 +1913,6 @@ export namespace Models {
|
|
|
2083
1913
|
*/
|
|
2084
1914
|
runtime: string;
|
|
2085
1915
|
}
|
|
2086
|
-
/**
|
|
2087
|
-
* VcsContents
|
|
2088
|
-
*/
|
|
2089
|
-
export type VcsContent = {
|
|
2090
|
-
/**
|
|
2091
|
-
* Content size in bytes. Only files have size, and for directories, 0 is returned.
|
|
2092
|
-
*/
|
|
2093
|
-
size?: number;
|
|
2094
|
-
/**
|
|
2095
|
-
* If a content is a directory. Directories can be used to check nested contents.
|
|
2096
|
-
*/
|
|
2097
|
-
isDirectory?: boolean;
|
|
2098
|
-
/**
|
|
2099
|
-
* Name of directory or file.
|
|
2100
|
-
*/
|
|
2101
|
-
name: string;
|
|
2102
|
-
}
|
|
2103
1916
|
/**
|
|
2104
1917
|
* Branch
|
|
2105
1918
|
*/
|
|
@@ -2117,10 +1930,6 @@ export namespace Models {
|
|
|
2117
1930
|
* Runtime ID.
|
|
2118
1931
|
*/
|
|
2119
1932
|
$id: string;
|
|
2120
|
-
/**
|
|
2121
|
-
* Parent runtime key.
|
|
2122
|
-
*/
|
|
2123
|
-
key: string;
|
|
2124
1933
|
/**
|
|
2125
1934
|
* Runtime Name.
|
|
2126
1935
|
*/
|
|
@@ -2182,10 +1991,6 @@ export namespace Models {
|
|
|
2182
1991
|
* The code size in bytes.
|
|
2183
1992
|
*/
|
|
2184
1993
|
size: number;
|
|
2185
|
-
/**
|
|
2186
|
-
* The build output size in bytes.
|
|
2187
|
-
*/
|
|
2188
|
-
buildSize: number;
|
|
2189
1994
|
/**
|
|
2190
1995
|
* The current build ID.
|
|
2191
1996
|
*/
|
|
@@ -2315,51 +2120,6 @@ export namespace Models {
|
|
|
2315
2120
|
* Function execution duration in seconds.
|
|
2316
2121
|
*/
|
|
2317
2122
|
duration: number;
|
|
2318
|
-
/**
|
|
2319
|
-
* The scheduled time for execution. If left empty, execution will be queued immediately.
|
|
2320
|
-
*/
|
|
2321
|
-
scheduledAt?: string;
|
|
2322
|
-
}
|
|
2323
|
-
/**
|
|
2324
|
-
* Build
|
|
2325
|
-
*/
|
|
2326
|
-
export type Build = {
|
|
2327
|
-
/**
|
|
2328
|
-
* Build ID.
|
|
2329
|
-
*/
|
|
2330
|
-
$id: string;
|
|
2331
|
-
/**
|
|
2332
|
-
* The deployment that created this build.
|
|
2333
|
-
*/
|
|
2334
|
-
deploymentId: string;
|
|
2335
|
-
/**
|
|
2336
|
-
* The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built
|
|
2337
|
-
*/
|
|
2338
|
-
status: string;
|
|
2339
|
-
/**
|
|
2340
|
-
* The stdout of the build.
|
|
2341
|
-
*/
|
|
2342
|
-
stdout: string;
|
|
2343
|
-
/**
|
|
2344
|
-
* The stderr of the build.
|
|
2345
|
-
*/
|
|
2346
|
-
stderr: string;
|
|
2347
|
-
/**
|
|
2348
|
-
* The deployment creation date in ISO 8601 format.
|
|
2349
|
-
*/
|
|
2350
|
-
startTime: string;
|
|
2351
|
-
/**
|
|
2352
|
-
* The time the build was finished in ISO 8601 format.
|
|
2353
|
-
*/
|
|
2354
|
-
endTime: string;
|
|
2355
|
-
/**
|
|
2356
|
-
* The build duration in seconds.
|
|
2357
|
-
*/
|
|
2358
|
-
duration: number;
|
|
2359
|
-
/**
|
|
2360
|
-
* The code size in bytes.
|
|
2361
|
-
*/
|
|
2362
|
-
size: number;
|
|
2363
2123
|
}
|
|
2364
2124
|
/**
|
|
2365
2125
|
* Project
|
|
@@ -2445,14 +2205,6 @@ export namespace Models {
|
|
|
2445
2205
|
* Whether or not to check the user password for similarity with their personal data.
|
|
2446
2206
|
*/
|
|
2447
2207
|
authPersonalDataCheck: boolean;
|
|
2448
|
-
/**
|
|
2449
|
-
* An array of mock numbers and their corresponding verification codes (OTPs).
|
|
2450
|
-
*/
|
|
2451
|
-
authMockNumbers: MockNumber[];
|
|
2452
|
-
/**
|
|
2453
|
-
* Whether or not to send session alert emails to users.
|
|
2454
|
-
*/
|
|
2455
|
-
authSessionAlerts: boolean;
|
|
2456
2208
|
/**
|
|
2457
2209
|
* List of Auth Providers.
|
|
2458
2210
|
*/
|
|
@@ -2577,6 +2329,10 @@ export namespace Models {
|
|
|
2577
2329
|
* Messaging service status
|
|
2578
2330
|
*/
|
|
2579
2331
|
serviceStatusForMessaging: boolean;
|
|
2332
|
+
/**
|
|
2333
|
+
* Project region
|
|
2334
|
+
*/
|
|
2335
|
+
region: number;
|
|
2580
2336
|
}
|
|
2581
2337
|
/**
|
|
2582
2338
|
* Webhook
|
|
@@ -2676,19 +2432,6 @@ export namespace Models {
|
|
|
2676
2432
|
*/
|
|
2677
2433
|
sdks: string[];
|
|
2678
2434
|
}
|
|
2679
|
-
/**
|
|
2680
|
-
* Mock Number
|
|
2681
|
-
*/
|
|
2682
|
-
export type MockNumber = {
|
|
2683
|
-
/**
|
|
2684
|
-
* Mock phone number for testing phone authentication. Useful for testing phone authentication without sending an SMS.
|
|
2685
|
-
*/
|
|
2686
|
-
phone: string;
|
|
2687
|
-
/**
|
|
2688
|
-
* Mock OTP for the number.
|
|
2689
|
-
*/
|
|
2690
|
-
otp: string;
|
|
2691
|
-
}
|
|
2692
2435
|
/**
|
|
2693
2436
|
* AuthProvider
|
|
2694
2437
|
*/
|
|
@@ -3418,27 +3161,6 @@ export namespace Models {
|
|
|
3418
3161
|
*/
|
|
3419
3162
|
value: string;
|
|
3420
3163
|
}
|
|
3421
|
-
/**
|
|
3422
|
-
* Specification
|
|
3423
|
-
*/
|
|
3424
|
-
export type Specification = {
|
|
3425
|
-
/**
|
|
3426
|
-
* Memory size in MB.
|
|
3427
|
-
*/
|
|
3428
|
-
memory: number;
|
|
3429
|
-
/**
|
|
3430
|
-
* Number of CPUs.
|
|
3431
|
-
*/
|
|
3432
|
-
cpus: number;
|
|
3433
|
-
/**
|
|
3434
|
-
* Is size enabled.
|
|
3435
|
-
*/
|
|
3436
|
-
enabled: boolean;
|
|
3437
|
-
/**
|
|
3438
|
-
* Size slug.
|
|
3439
|
-
*/
|
|
3440
|
-
slug: string;
|
|
3441
|
-
}
|
|
3442
3164
|
/**
|
|
3443
3165
|
* Rule
|
|
3444
3166
|
*/
|
|
@@ -3939,4 +3661,956 @@ export namespace Models {
|
|
|
3939
3661
|
*/
|
|
3940
3662
|
displayName: string;
|
|
3941
3663
|
}
|
|
3664
|
+
/**
|
|
3665
|
+
* Billing Invoices List
|
|
3666
|
+
*/
|
|
3667
|
+
export type InvoiceList = {
|
|
3668
|
+
/**
|
|
3669
|
+
* Total number of invoices documents that matched your query.
|
|
3670
|
+
*/
|
|
3671
|
+
total: number;
|
|
3672
|
+
/**
|
|
3673
|
+
* List of invoices.
|
|
3674
|
+
*/
|
|
3675
|
+
invoices: Invoice[];
|
|
3676
|
+
}
|
|
3677
|
+
/**
|
|
3678
|
+
* Payment Methods List
|
|
3679
|
+
*/
|
|
3680
|
+
export type PaymentMethodList = {
|
|
3681
|
+
/**
|
|
3682
|
+
* Total number of paymentMethods documents that matched your query.
|
|
3683
|
+
*/
|
|
3684
|
+
total: number;
|
|
3685
|
+
/**
|
|
3686
|
+
* List of paymentMethods.
|
|
3687
|
+
*/
|
|
3688
|
+
paymentMethods: PaymentMethod[];
|
|
3689
|
+
}
|
|
3690
|
+
/**
|
|
3691
|
+
* Aggregation team list
|
|
3692
|
+
*/
|
|
3693
|
+
export type AggregationTeamList = {
|
|
3694
|
+
/**
|
|
3695
|
+
* Total number of aggregations documents that matched your query.
|
|
3696
|
+
*/
|
|
3697
|
+
total: number;
|
|
3698
|
+
/**
|
|
3699
|
+
* List of aggregations.
|
|
3700
|
+
*/
|
|
3701
|
+
aggregations: AggregationTeam[];
|
|
3702
|
+
}
|
|
3703
|
+
/**
|
|
3704
|
+
* Regions list
|
|
3705
|
+
*/
|
|
3706
|
+
export type ConsoleRegionList = {
|
|
3707
|
+
/**
|
|
3708
|
+
* Total number of regions documents that matched your query.
|
|
3709
|
+
*/
|
|
3710
|
+
total: number;
|
|
3711
|
+
/**
|
|
3712
|
+
* List of regions.
|
|
3713
|
+
*/
|
|
3714
|
+
regions: ConsoleRegion[];
|
|
3715
|
+
}
|
|
3716
|
+
/**
|
|
3717
|
+
* Billing plan list
|
|
3718
|
+
*/
|
|
3719
|
+
export type BillingPlanList = {
|
|
3720
|
+
/**
|
|
3721
|
+
* Total number of plans documents that matched your query.
|
|
3722
|
+
*/
|
|
3723
|
+
total: number;
|
|
3724
|
+
/**
|
|
3725
|
+
* List of plans.
|
|
3726
|
+
*/
|
|
3727
|
+
plans: BillingPlan[];
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Backup policy list
|
|
3731
|
+
*/
|
|
3732
|
+
export type BackupPolicyList = {
|
|
3733
|
+
/**
|
|
3734
|
+
* Total number of policies documents that matched your query.
|
|
3735
|
+
*/
|
|
3736
|
+
total: number;
|
|
3737
|
+
/**
|
|
3738
|
+
* List of policies.
|
|
3739
|
+
*/
|
|
3740
|
+
policies: BackupPolicy[];
|
|
3741
|
+
}
|
|
3742
|
+
/**
|
|
3743
|
+
* Backup archive list
|
|
3744
|
+
*/
|
|
3745
|
+
export type BackupArchiveList = {
|
|
3746
|
+
/**
|
|
3747
|
+
* Total number of archives documents that matched your query.
|
|
3748
|
+
*/
|
|
3749
|
+
total: number;
|
|
3750
|
+
/**
|
|
3751
|
+
* List of archives.
|
|
3752
|
+
*/
|
|
3753
|
+
archives: BackupArchive[];
|
|
3754
|
+
}
|
|
3755
|
+
/**
|
|
3756
|
+
* Backup restoration list
|
|
3757
|
+
*/
|
|
3758
|
+
export type BackupRestorationList = {
|
|
3759
|
+
/**
|
|
3760
|
+
* Total number of restorations documents that matched your query.
|
|
3761
|
+
*/
|
|
3762
|
+
total: number;
|
|
3763
|
+
/**
|
|
3764
|
+
* List of restorations.
|
|
3765
|
+
*/
|
|
3766
|
+
restorations: BackupRestoration[];
|
|
3767
|
+
}
|
|
3768
|
+
/**
|
|
3769
|
+
* Organization
|
|
3770
|
+
*/
|
|
3771
|
+
export type Organization<Preferences extends Models.Preferences> = {
|
|
3772
|
+
/**
|
|
3773
|
+
* Team ID.
|
|
3774
|
+
*/
|
|
3775
|
+
$id: string;
|
|
3776
|
+
/**
|
|
3777
|
+
* Team creation date in ISO 8601 format.
|
|
3778
|
+
*/
|
|
3779
|
+
$createdAt: string;
|
|
3780
|
+
/**
|
|
3781
|
+
* Team update date in ISO 8601 format.
|
|
3782
|
+
*/
|
|
3783
|
+
$updatedAt: string;
|
|
3784
|
+
/**
|
|
3785
|
+
* Team name.
|
|
3786
|
+
*/
|
|
3787
|
+
name: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* Total number of team members.
|
|
3790
|
+
*/
|
|
3791
|
+
total: number;
|
|
3792
|
+
/**
|
|
3793
|
+
* Team preferences as a key-value object
|
|
3794
|
+
*/
|
|
3795
|
+
prefs: Preferences;
|
|
3796
|
+
/**
|
|
3797
|
+
* Project budget limit
|
|
3798
|
+
*/
|
|
3799
|
+
billingBudget: number;
|
|
3800
|
+
/**
|
|
3801
|
+
* Project budget limit
|
|
3802
|
+
*/
|
|
3803
|
+
budgetAlerts: string[];
|
|
3804
|
+
/**
|
|
3805
|
+
* Billing plan selected. Can be one of `tier-0`, `tier-1` or `tier-2`.
|
|
3806
|
+
*/
|
|
3807
|
+
billingPlan: string;
|
|
3808
|
+
/**
|
|
3809
|
+
* Billing email set for the organization.
|
|
3810
|
+
*/
|
|
3811
|
+
billingEmail: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* Billing cycle start date.
|
|
3814
|
+
*/
|
|
3815
|
+
billingStartDate: string;
|
|
3816
|
+
/**
|
|
3817
|
+
* Current invoice cycle start date.
|
|
3818
|
+
*/
|
|
3819
|
+
billingCurrentInvoiceDate: string;
|
|
3820
|
+
/**
|
|
3821
|
+
* Next invoice cycle start date.
|
|
3822
|
+
*/
|
|
3823
|
+
billingNextInvoiceDate: string;
|
|
3824
|
+
/**
|
|
3825
|
+
* Start date of trial.
|
|
3826
|
+
*/
|
|
3827
|
+
billingTrialStartDate: string;
|
|
3828
|
+
/**
|
|
3829
|
+
* Number of trial days.
|
|
3830
|
+
*/
|
|
3831
|
+
billingTrialDays: number;
|
|
3832
|
+
/**
|
|
3833
|
+
* Current active aggregation id.
|
|
3834
|
+
*/
|
|
3835
|
+
billingAggregationId: string;
|
|
3836
|
+
/**
|
|
3837
|
+
* Default payment method.
|
|
3838
|
+
*/
|
|
3839
|
+
paymentMethodId: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Default payment method.
|
|
3842
|
+
*/
|
|
3843
|
+
billingAddressId: string;
|
|
3844
|
+
/**
|
|
3845
|
+
* Backup payment method.
|
|
3846
|
+
*/
|
|
3847
|
+
backupPaymentMethodId: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* Organization agreements
|
|
3850
|
+
*/
|
|
3851
|
+
agreementBAA: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* Program manager's name.
|
|
3854
|
+
*/
|
|
3855
|
+
programManagerName: string;
|
|
3856
|
+
/**
|
|
3857
|
+
* Program manager's calendar link.
|
|
3858
|
+
*/
|
|
3859
|
+
programManagerCalendar: string;
|
|
3860
|
+
/**
|
|
3861
|
+
* Program's discord channel name.
|
|
3862
|
+
*/
|
|
3863
|
+
programDiscordChannelName: string;
|
|
3864
|
+
/**
|
|
3865
|
+
* Program's discord channel URL.
|
|
3866
|
+
*/
|
|
3867
|
+
programDiscordChannelUrl: string;
|
|
3868
|
+
/**
|
|
3869
|
+
* Billing limits reached
|
|
3870
|
+
*/
|
|
3871
|
+
billingLimits: object;
|
|
3872
|
+
/**
|
|
3873
|
+
* Billing plan downgrade
|
|
3874
|
+
*/
|
|
3875
|
+
billingPlanDowngrade: object;
|
|
3876
|
+
/**
|
|
3877
|
+
* Tax Id
|
|
3878
|
+
*/
|
|
3879
|
+
billingTaxId: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* Marked for deletion
|
|
3882
|
+
*/
|
|
3883
|
+
markedForDeletion: boolean;
|
|
3884
|
+
}
|
|
3885
|
+
/**
|
|
3886
|
+
* Credit
|
|
3887
|
+
*/
|
|
3888
|
+
export type Credit = {
|
|
3889
|
+
/**
|
|
3890
|
+
* Credit ID.
|
|
3891
|
+
*/
|
|
3892
|
+
$id: string;
|
|
3893
|
+
/**
|
|
3894
|
+
* Credit creation time in ISO 8601 format.
|
|
3895
|
+
*/
|
|
3896
|
+
$createdAt: string;
|
|
3897
|
+
/**
|
|
3898
|
+
* Credit update date in ISO 8601 format.
|
|
3899
|
+
*/
|
|
3900
|
+
$updatedAt: string;
|
|
3901
|
+
/**
|
|
3902
|
+
* Credit permissions. [Learn more about permissions](/docs/permissions).
|
|
3903
|
+
*/
|
|
3904
|
+
$permissions: string[];
|
|
3905
|
+
/**
|
|
3906
|
+
* coupon ID
|
|
3907
|
+
*/
|
|
3908
|
+
couponId: string;
|
|
3909
|
+
/**
|
|
3910
|
+
* ID of the User.
|
|
3911
|
+
*/
|
|
3912
|
+
userId: string;
|
|
3913
|
+
/**
|
|
3914
|
+
* ID of the Team.
|
|
3915
|
+
*/
|
|
3916
|
+
teamId: string;
|
|
3917
|
+
/**
|
|
3918
|
+
* Provided credit amount
|
|
3919
|
+
*/
|
|
3920
|
+
credits: number;
|
|
3921
|
+
/**
|
|
3922
|
+
* Provided credit amount
|
|
3923
|
+
*/
|
|
3924
|
+
total: number;
|
|
3925
|
+
/**
|
|
3926
|
+
* Credit expiration time in ISO 8601 format.
|
|
3927
|
+
*/
|
|
3928
|
+
expiration: string;
|
|
3929
|
+
/**
|
|
3930
|
+
* Status of the credit. Can be one of `disabled`, `active` or `expired`.
|
|
3931
|
+
*/
|
|
3932
|
+
status: string;
|
|
3933
|
+
}
|
|
3934
|
+
/**
|
|
3935
|
+
* Coupon
|
|
3936
|
+
*/
|
|
3937
|
+
export type Coupon = {
|
|
3938
|
+
/**
|
|
3939
|
+
* coupon ID
|
|
3940
|
+
*/
|
|
3941
|
+
$id: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* coupon ID
|
|
3944
|
+
*/
|
|
3945
|
+
code: string;
|
|
3946
|
+
/**
|
|
3947
|
+
* Provided credit amount
|
|
3948
|
+
*/
|
|
3949
|
+
credits: number;
|
|
3950
|
+
/**
|
|
3951
|
+
* Coupon expiration time in ISO 8601 format.
|
|
3952
|
+
*/
|
|
3953
|
+
expiration: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* Credit validity in days.
|
|
3956
|
+
*/
|
|
3957
|
+
validity: number;
|
|
3958
|
+
/**
|
|
3959
|
+
* Campaign the coupon is associated with`.
|
|
3960
|
+
*/
|
|
3961
|
+
campaign: string;
|
|
3962
|
+
/**
|
|
3963
|
+
* Status of the coupon. Can be one of `disabled`, `active` or `expired`.
|
|
3964
|
+
*/
|
|
3965
|
+
status: string;
|
|
3966
|
+
}
|
|
3967
|
+
/**
|
|
3968
|
+
* Invoice
|
|
3969
|
+
*/
|
|
3970
|
+
export type Invoice = {
|
|
3971
|
+
/**
|
|
3972
|
+
* Invoice ID.
|
|
3973
|
+
*/
|
|
3974
|
+
$id: string;
|
|
3975
|
+
/**
|
|
3976
|
+
* Invoice creation time in ISO 8601 format.
|
|
3977
|
+
*/
|
|
3978
|
+
$createdAt: string;
|
|
3979
|
+
/**
|
|
3980
|
+
* Invoice update date in ISO 8601 format.
|
|
3981
|
+
*/
|
|
3982
|
+
$updatedAt: string;
|
|
3983
|
+
/**
|
|
3984
|
+
* Invoice permissions. [Learn more about permissions](/docs/permissions).
|
|
3985
|
+
*/
|
|
3986
|
+
$permissions: string[];
|
|
3987
|
+
/**
|
|
3988
|
+
* Project ID
|
|
3989
|
+
*/
|
|
3990
|
+
teamId: string;
|
|
3991
|
+
/**
|
|
3992
|
+
* Aggregation ID
|
|
3993
|
+
*/
|
|
3994
|
+
aggregationId: string;
|
|
3995
|
+
/**
|
|
3996
|
+
* Billing plan selected. Can be one of `tier-0`, `tier-1` or `tier-2`.
|
|
3997
|
+
*/
|
|
3998
|
+
plan: string;
|
|
3999
|
+
/**
|
|
4000
|
+
* Usage breakdown per resource
|
|
4001
|
+
*/
|
|
4002
|
+
usage: object;
|
|
4003
|
+
/**
|
|
4004
|
+
* Invoice Amount
|
|
4005
|
+
*/
|
|
4006
|
+
amount: number;
|
|
4007
|
+
/**
|
|
4008
|
+
* Tax percentage
|
|
4009
|
+
*/
|
|
4010
|
+
tax: number;
|
|
4011
|
+
/**
|
|
4012
|
+
* Tax amount
|
|
4013
|
+
*/
|
|
4014
|
+
taxAmount: number;
|
|
4015
|
+
/**
|
|
4016
|
+
* VAT percentage
|
|
4017
|
+
*/
|
|
4018
|
+
vat: number;
|
|
4019
|
+
/**
|
|
4020
|
+
* VAT amount
|
|
4021
|
+
*/
|
|
4022
|
+
vatAmount: number;
|
|
4023
|
+
/**
|
|
4024
|
+
* Gross amount after vat, tax, and discounts applied.
|
|
4025
|
+
*/
|
|
4026
|
+
grossAmount: number;
|
|
4027
|
+
/**
|
|
4028
|
+
* Credits used.
|
|
4029
|
+
*/
|
|
4030
|
+
creditsUsed: number;
|
|
4031
|
+
/**
|
|
4032
|
+
* Currency the invoice is in
|
|
4033
|
+
*/
|
|
4034
|
+
currency: string;
|
|
4035
|
+
/**
|
|
4036
|
+
* Client secret for processing failed payments in front-end
|
|
4037
|
+
*/
|
|
4038
|
+
clientSecret: string;
|
|
4039
|
+
/**
|
|
4040
|
+
* Invoice status
|
|
4041
|
+
*/
|
|
4042
|
+
status: string;
|
|
4043
|
+
/**
|
|
4044
|
+
* Last payment error associated with the invoice
|
|
4045
|
+
*/
|
|
4046
|
+
lastError: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* Invoice due date.
|
|
4049
|
+
*/
|
|
4050
|
+
dueAt: string;
|
|
4051
|
+
/**
|
|
4052
|
+
* Beginning date of the invoice
|
|
4053
|
+
*/
|
|
4054
|
+
from: string;
|
|
4055
|
+
/**
|
|
4056
|
+
* End date of the invoice
|
|
4057
|
+
*/
|
|
4058
|
+
to: string;
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* paymentMethod
|
|
4062
|
+
*/
|
|
4063
|
+
export type PaymentMethod = {
|
|
4064
|
+
/**
|
|
4065
|
+
* Payment Method ID.
|
|
4066
|
+
*/
|
|
4067
|
+
$id: string;
|
|
4068
|
+
/**
|
|
4069
|
+
* Payment method creation time in ISO 8601 format.
|
|
4070
|
+
*/
|
|
4071
|
+
$createdAt: string;
|
|
4072
|
+
/**
|
|
4073
|
+
* Payment method update date in ISO 8601 format.
|
|
4074
|
+
*/
|
|
4075
|
+
$updatedAt: string;
|
|
4076
|
+
/**
|
|
4077
|
+
* Payment method permissions. [Learn more about permissions](/docs/permissions).
|
|
4078
|
+
*/
|
|
4079
|
+
$permissions: string[];
|
|
4080
|
+
/**
|
|
4081
|
+
* Payment method ID from the payment provider
|
|
4082
|
+
*/
|
|
4083
|
+
providerMethodId: string;
|
|
4084
|
+
/**
|
|
4085
|
+
* Client secret hash for payment setup
|
|
4086
|
+
*/
|
|
4087
|
+
clientSecret: string;
|
|
4088
|
+
/**
|
|
4089
|
+
* User ID from the payment provider.
|
|
4090
|
+
*/
|
|
4091
|
+
providerUserId: string;
|
|
4092
|
+
/**
|
|
4093
|
+
* ID of the Team.
|
|
4094
|
+
*/
|
|
4095
|
+
userId: string;
|
|
4096
|
+
/**
|
|
4097
|
+
* Expiry month of the payment method.
|
|
4098
|
+
*/
|
|
4099
|
+
expiryMonth: number;
|
|
4100
|
+
/**
|
|
4101
|
+
* Expiry year of the payment method.
|
|
4102
|
+
*/
|
|
4103
|
+
expiryYear: number;
|
|
4104
|
+
/**
|
|
4105
|
+
* Last 4 digit of the payment method
|
|
4106
|
+
*/
|
|
4107
|
+
last4: string;
|
|
4108
|
+
/**
|
|
4109
|
+
* Payment method brand
|
|
4110
|
+
*/
|
|
4111
|
+
brand: string;
|
|
4112
|
+
/**
|
|
4113
|
+
* Name of the owner
|
|
4114
|
+
*/
|
|
4115
|
+
name: string;
|
|
4116
|
+
/**
|
|
4117
|
+
* Last payment error associated with the payment method.
|
|
4118
|
+
*/
|
|
4119
|
+
lastError: string;
|
|
4120
|
+
/**
|
|
4121
|
+
* True when it's the default payment method.
|
|
4122
|
+
*/
|
|
4123
|
+
default: boolean;
|
|
4124
|
+
/**
|
|
4125
|
+
* True when payment method has expired.
|
|
4126
|
+
*/
|
|
4127
|
+
expired: boolean;
|
|
4128
|
+
/**
|
|
4129
|
+
* True when payment method has failed to process multiple times.
|
|
4130
|
+
*/
|
|
4131
|
+
failed: boolean;
|
|
4132
|
+
}
|
|
4133
|
+
/**
|
|
4134
|
+
* AggregationTeam
|
|
4135
|
+
*/
|
|
4136
|
+
export type AggregationTeam = {
|
|
4137
|
+
/**
|
|
4138
|
+
* Aggregation ID.
|
|
4139
|
+
*/
|
|
4140
|
+
$id: string;
|
|
4141
|
+
/**
|
|
4142
|
+
* Aggregation creation time in ISO 8601 format.
|
|
4143
|
+
*/
|
|
4144
|
+
$createdAt: string;
|
|
4145
|
+
/**
|
|
4146
|
+
* Aggregation update date in ISO 8601 format.
|
|
4147
|
+
*/
|
|
4148
|
+
$updatedAt: string;
|
|
4149
|
+
/**
|
|
4150
|
+
* Aggregation permissions. [Learn more about permissions](/docs/permissions).
|
|
4151
|
+
*/
|
|
4152
|
+
$permissions: string[];
|
|
4153
|
+
/**
|
|
4154
|
+
* Beginning date of the invoice
|
|
4155
|
+
*/
|
|
4156
|
+
from: string;
|
|
4157
|
+
/**
|
|
4158
|
+
* End date of the invoice
|
|
4159
|
+
*/
|
|
4160
|
+
to: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* Total storage usage
|
|
4163
|
+
*/
|
|
4164
|
+
usageStorage: number;
|
|
4165
|
+
/**
|
|
4166
|
+
* Total active users for the billing period
|
|
4167
|
+
*/
|
|
4168
|
+
usageUsers: number;
|
|
4169
|
+
/**
|
|
4170
|
+
* Total number of executions for the billing period
|
|
4171
|
+
*/
|
|
4172
|
+
usageExecutions: number;
|
|
4173
|
+
/**
|
|
4174
|
+
* Total bandwidth usage for the billing period
|
|
4175
|
+
*/
|
|
4176
|
+
usageBandwidth: number;
|
|
4177
|
+
/**
|
|
4178
|
+
* Total realtime usage for the billing period
|
|
4179
|
+
*/
|
|
4180
|
+
usageRealtime: number;
|
|
4181
|
+
/**
|
|
4182
|
+
* Additional members
|
|
4183
|
+
*/
|
|
4184
|
+
additionalMembers: number;
|
|
4185
|
+
/**
|
|
4186
|
+
* Additional members cost
|
|
4187
|
+
*/
|
|
4188
|
+
additionalMemberAmount: number;
|
|
4189
|
+
/**
|
|
4190
|
+
* Additional storage usage cost
|
|
4191
|
+
*/
|
|
4192
|
+
additionalStorageAmount: number;
|
|
4193
|
+
/**
|
|
4194
|
+
* Additional users usage cost.
|
|
4195
|
+
*/
|
|
4196
|
+
additionalUsersAmount: number;
|
|
4197
|
+
/**
|
|
4198
|
+
* Additional executions usage cost
|
|
4199
|
+
*/
|
|
4200
|
+
additionalExecutionsAmount: number;
|
|
4201
|
+
/**
|
|
4202
|
+
* Additional bandwidth usage cost
|
|
4203
|
+
*/
|
|
4204
|
+
additionalBandwidthAmount: number;
|
|
4205
|
+
/**
|
|
4206
|
+
* Additional realtime usage cost
|
|
4207
|
+
*/
|
|
4208
|
+
additionalRealtimeAmount: number;
|
|
4209
|
+
/**
|
|
4210
|
+
* Aggregated amount
|
|
4211
|
+
*/
|
|
4212
|
+
amount: number;
|
|
4213
|
+
}
|
|
4214
|
+
/**
|
|
4215
|
+
* Region
|
|
4216
|
+
*/
|
|
4217
|
+
export type ConsoleRegion = {
|
|
4218
|
+
/**
|
|
4219
|
+
* Region ID
|
|
4220
|
+
*/
|
|
4221
|
+
$id: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* Region name
|
|
4224
|
+
*/
|
|
4225
|
+
name: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* Is the region disabled.
|
|
4228
|
+
*/
|
|
4229
|
+
disabled: boolean;
|
|
4230
|
+
/**
|
|
4231
|
+
* Is this the region default.
|
|
4232
|
+
*/
|
|
4233
|
+
default: boolean;
|
|
4234
|
+
/**
|
|
4235
|
+
* Region flag code.
|
|
4236
|
+
*/
|
|
4237
|
+
flag: string;
|
|
4238
|
+
}
|
|
4239
|
+
/**
|
|
4240
|
+
* BillingAddress
|
|
4241
|
+
*/
|
|
4242
|
+
export type BillingAddress = {
|
|
4243
|
+
/**
|
|
4244
|
+
* Region ID
|
|
4245
|
+
*/
|
|
4246
|
+
$id: string;
|
|
4247
|
+
/**
|
|
4248
|
+
* Street address
|
|
4249
|
+
*/
|
|
4250
|
+
streetAddress: string;
|
|
4251
|
+
/**
|
|
4252
|
+
* Address line 2
|
|
4253
|
+
*/
|
|
4254
|
+
addressLine2: string;
|
|
4255
|
+
/**
|
|
4256
|
+
* Address country
|
|
4257
|
+
*/
|
|
4258
|
+
country: string;
|
|
4259
|
+
/**
|
|
4260
|
+
* city
|
|
4261
|
+
*/
|
|
4262
|
+
city: string;
|
|
4263
|
+
/**
|
|
4264
|
+
* state
|
|
4265
|
+
*/
|
|
4266
|
+
state: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* postal code
|
|
4269
|
+
*/
|
|
4270
|
+
postalCode: string;
|
|
4271
|
+
}
|
|
4272
|
+
/**
|
|
4273
|
+
* billingPlan
|
|
4274
|
+
*/
|
|
4275
|
+
export type BillingPlan = {
|
|
4276
|
+
/**
|
|
4277
|
+
* Plan ID.
|
|
4278
|
+
*/
|
|
4279
|
+
$id: string;
|
|
4280
|
+
/**
|
|
4281
|
+
* Plan name
|
|
4282
|
+
*/
|
|
4283
|
+
name: string;
|
|
4284
|
+
/**
|
|
4285
|
+
* Price
|
|
4286
|
+
*/
|
|
4287
|
+
price: number;
|
|
4288
|
+
/**
|
|
4289
|
+
* Trial days
|
|
4290
|
+
*/
|
|
4291
|
+
trial: number;
|
|
4292
|
+
/**
|
|
4293
|
+
* Bandwidth
|
|
4294
|
+
*/
|
|
4295
|
+
bandwidth: number;
|
|
4296
|
+
/**
|
|
4297
|
+
* Storage
|
|
4298
|
+
*/
|
|
4299
|
+
storage: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* Members
|
|
4302
|
+
*/
|
|
4303
|
+
members: number;
|
|
4304
|
+
/**
|
|
4305
|
+
* Webhooks
|
|
4306
|
+
*/
|
|
4307
|
+
webhooks: number;
|
|
4308
|
+
/**
|
|
4309
|
+
* Platofrms
|
|
4310
|
+
*/
|
|
4311
|
+
platforms: number;
|
|
4312
|
+
/**
|
|
4313
|
+
* Users
|
|
4314
|
+
*/
|
|
4315
|
+
users: number;
|
|
4316
|
+
/**
|
|
4317
|
+
* Teams
|
|
4318
|
+
*/
|
|
4319
|
+
teams: number;
|
|
4320
|
+
/**
|
|
4321
|
+
* Databases
|
|
4322
|
+
*/
|
|
4323
|
+
databases: number;
|
|
4324
|
+
/**
|
|
4325
|
+
* Buckets
|
|
4326
|
+
*/
|
|
4327
|
+
buckets: number;
|
|
4328
|
+
/**
|
|
4329
|
+
* File size
|
|
4330
|
+
*/
|
|
4331
|
+
fileSize: number;
|
|
4332
|
+
/**
|
|
4333
|
+
* Functions
|
|
4334
|
+
*/
|
|
4335
|
+
functions: number;
|
|
4336
|
+
/**
|
|
4337
|
+
* Function executions
|
|
4338
|
+
*/
|
|
4339
|
+
executions: number;
|
|
4340
|
+
/**
|
|
4341
|
+
* Realtime connections
|
|
4342
|
+
*/
|
|
4343
|
+
realtime: number;
|
|
4344
|
+
/**
|
|
4345
|
+
* Log days
|
|
4346
|
+
*/
|
|
4347
|
+
logs: number;
|
|
4348
|
+
/**
|
|
4349
|
+
* Additional resources
|
|
4350
|
+
*/
|
|
4351
|
+
addons: AdditionalResource[];
|
|
4352
|
+
/**
|
|
4353
|
+
* Custom SMTP
|
|
4354
|
+
*/
|
|
4355
|
+
customSmtp: boolean;
|
|
4356
|
+
/**
|
|
4357
|
+
* Appwrite branding in email
|
|
4358
|
+
*/
|
|
4359
|
+
emailBranding: boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
* Does plan require payment method
|
|
4362
|
+
*/
|
|
4363
|
+
requiresPaymentMethod: boolean;
|
|
4364
|
+
/**
|
|
4365
|
+
* Does plan require billing address
|
|
4366
|
+
*/
|
|
4367
|
+
requiresBillingAddress: boolean;
|
|
4368
|
+
}
|
|
4369
|
+
/**
|
|
4370
|
+
* AdditionalResource
|
|
4371
|
+
*/
|
|
4372
|
+
export type AdditionalResource = {
|
|
4373
|
+
/**
|
|
4374
|
+
* Resource unit
|
|
4375
|
+
*/
|
|
4376
|
+
unit: string;
|
|
4377
|
+
/**
|
|
4378
|
+
* Price currency
|
|
4379
|
+
*/
|
|
4380
|
+
currency: string;
|
|
4381
|
+
/**
|
|
4382
|
+
* Price
|
|
4383
|
+
*/
|
|
4384
|
+
price: number;
|
|
4385
|
+
/**
|
|
4386
|
+
* Resource value
|
|
4387
|
+
*/
|
|
4388
|
+
value: number;
|
|
4389
|
+
}
|
|
4390
|
+
/**
|
|
4391
|
+
* UsageOrganization
|
|
4392
|
+
*/
|
|
4393
|
+
export type UsageOrganization = {
|
|
4394
|
+
/**
|
|
4395
|
+
* Aggregated stats for number of requests.
|
|
4396
|
+
*/
|
|
4397
|
+
bandwidth: Metric[];
|
|
4398
|
+
/**
|
|
4399
|
+
* Aggregated stats for consumed bandwidth.
|
|
4400
|
+
*/
|
|
4401
|
+
users: Metric[];
|
|
4402
|
+
/**
|
|
4403
|
+
* Aggregated stats for function executions.
|
|
4404
|
+
*/
|
|
4405
|
+
executions: Metric[];
|
|
4406
|
+
/**
|
|
4407
|
+
* Aggregated stats for function executions.
|
|
4408
|
+
*/
|
|
4409
|
+
usersTotal: number;
|
|
4410
|
+
/**
|
|
4411
|
+
* Aggregated stats for function executions.
|
|
4412
|
+
*/
|
|
4413
|
+
executionsTotal: number;
|
|
4414
|
+
/**
|
|
4415
|
+
* Aggregated stats for number of documents.
|
|
4416
|
+
*/
|
|
4417
|
+
storageTotal: number;
|
|
4418
|
+
/**
|
|
4419
|
+
* Aggregated stats for each projects.
|
|
4420
|
+
*/
|
|
4421
|
+
projects: UsageOrganizationProject[];
|
|
4422
|
+
}
|
|
4423
|
+
/**
|
|
4424
|
+
* UsageOrganizationProject
|
|
4425
|
+
*/
|
|
4426
|
+
export type UsageOrganizationProject = {
|
|
4427
|
+
/**
|
|
4428
|
+
* projectId
|
|
4429
|
+
*/
|
|
4430
|
+
projectId: string;
|
|
4431
|
+
/**
|
|
4432
|
+
* Aggregated stats for number of requests.
|
|
4433
|
+
*/
|
|
4434
|
+
bandwidth: Metric[];
|
|
4435
|
+
/**
|
|
4436
|
+
* Aggregated stats for consumed bandwidth.
|
|
4437
|
+
*/
|
|
4438
|
+
users: Metric[];
|
|
4439
|
+
/**
|
|
4440
|
+
* Aggregated stats for function executions.
|
|
4441
|
+
*/
|
|
4442
|
+
executions: number;
|
|
4443
|
+
/**
|
|
4444
|
+
* Aggregated stats for number of documents.
|
|
4445
|
+
*/
|
|
4446
|
+
storage: number;
|
|
4447
|
+
}
|
|
4448
|
+
/**
|
|
4449
|
+
* CreditList
|
|
4450
|
+
*/
|
|
4451
|
+
export type CreditList = {
|
|
4452
|
+
/**
|
|
4453
|
+
* Credits
|
|
4454
|
+
*/
|
|
4455
|
+
credits: Credit[];
|
|
4456
|
+
/**
|
|
4457
|
+
* Total number of credits
|
|
4458
|
+
*/
|
|
4459
|
+
total: number;
|
|
4460
|
+
/**
|
|
4461
|
+
* Total available credit balance in USD
|
|
4462
|
+
*/
|
|
4463
|
+
available: number;
|
|
4464
|
+
}
|
|
4465
|
+
/**
|
|
4466
|
+
* backup
|
|
4467
|
+
*/
|
|
4468
|
+
export type BackupPolicy = {
|
|
4469
|
+
/**
|
|
4470
|
+
* Backup policy ID.
|
|
4471
|
+
*/
|
|
4472
|
+
$id: string;
|
|
4473
|
+
/**
|
|
4474
|
+
* Backup policy name.
|
|
4475
|
+
*/
|
|
4476
|
+
name: string;
|
|
4477
|
+
/**
|
|
4478
|
+
* Policy creation date in ISO 8601 format.
|
|
4479
|
+
*/
|
|
4480
|
+
$createdAt: string;
|
|
4481
|
+
/**
|
|
4482
|
+
* Policy update date in ISO 8601 format.
|
|
4483
|
+
*/
|
|
4484
|
+
$updatedAt: string;
|
|
4485
|
+
/**
|
|
4486
|
+
* The services that are backed up by this policy.
|
|
4487
|
+
*/
|
|
4488
|
+
services: string[];
|
|
4489
|
+
/**
|
|
4490
|
+
* The resources that are backed up by this policy.
|
|
4491
|
+
*/
|
|
4492
|
+
resources: string[];
|
|
4493
|
+
/**
|
|
4494
|
+
* The resource ID to backup. Set only if this policy should backup a single resource.
|
|
4495
|
+
*/
|
|
4496
|
+
resourceId?: string;
|
|
4497
|
+
/**
|
|
4498
|
+
* The resource type to backup. Set only if this policy should backup a single resource.
|
|
4499
|
+
*/
|
|
4500
|
+
resourceType?: string;
|
|
4501
|
+
/**
|
|
4502
|
+
* How many days to keep the backup before it will be automatically deleted.
|
|
4503
|
+
*/
|
|
4504
|
+
retention: number;
|
|
4505
|
+
/**
|
|
4506
|
+
* Policy backup schedule in CRON format.
|
|
4507
|
+
*/
|
|
4508
|
+
schedule: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* Is this policy enabled.
|
|
4511
|
+
*/
|
|
4512
|
+
enabled: boolean;
|
|
4513
|
+
}
|
|
4514
|
+
/**
|
|
4515
|
+
* Archive
|
|
4516
|
+
*/
|
|
4517
|
+
export type BackupArchive = {
|
|
4518
|
+
/**
|
|
4519
|
+
* Archive ID.
|
|
4520
|
+
*/
|
|
4521
|
+
$id: string;
|
|
4522
|
+
/**
|
|
4523
|
+
* Archive creation time in ISO 8601 format.
|
|
4524
|
+
*/
|
|
4525
|
+
$createdAt: string;
|
|
4526
|
+
/**
|
|
4527
|
+
* Archive update date in ISO 8601 format.
|
|
4528
|
+
*/
|
|
4529
|
+
$updatedAt: string;
|
|
4530
|
+
/**
|
|
4531
|
+
* Archive policy ID.
|
|
4532
|
+
*/
|
|
4533
|
+
policyId: string;
|
|
4534
|
+
/**
|
|
4535
|
+
* Archive size in bytes.
|
|
4536
|
+
*/
|
|
4537
|
+
size: number;
|
|
4538
|
+
/**
|
|
4539
|
+
* The status of the archive creation. Possible values: pending, processing, uploading, completed, failed.
|
|
4540
|
+
*/
|
|
4541
|
+
status: string;
|
|
4542
|
+
/**
|
|
4543
|
+
* The backup start time.
|
|
4544
|
+
*/
|
|
4545
|
+
startedAt: string;
|
|
4546
|
+
/**
|
|
4547
|
+
* Migration ID.
|
|
4548
|
+
*/
|
|
4549
|
+
migrationId: string;
|
|
4550
|
+
/**
|
|
4551
|
+
* The services that are backed up by this archive.
|
|
4552
|
+
*/
|
|
4553
|
+
services: string[];
|
|
4554
|
+
/**
|
|
4555
|
+
* The resources that are backed up by this archive.
|
|
4556
|
+
*/
|
|
4557
|
+
resources: string[];
|
|
4558
|
+
/**
|
|
4559
|
+
* The resource ID to backup. Set only if this archive should backup a single resource.
|
|
4560
|
+
*/
|
|
4561
|
+
resourceId?: string;
|
|
4562
|
+
/**
|
|
4563
|
+
* The resource type to backup. Set only if this archive should backup a single resource.
|
|
4564
|
+
*/
|
|
4565
|
+
resourceType?: string;
|
|
4566
|
+
}
|
|
4567
|
+
/**
|
|
4568
|
+
* Restoration
|
|
4569
|
+
*/
|
|
4570
|
+
export type BackupRestoration = {
|
|
4571
|
+
/**
|
|
4572
|
+
* Restoration ID.
|
|
4573
|
+
*/
|
|
4574
|
+
$id: string;
|
|
4575
|
+
/**
|
|
4576
|
+
* Restoration creation time in ISO 8601 format.
|
|
4577
|
+
*/
|
|
4578
|
+
$createdAt: string;
|
|
4579
|
+
/**
|
|
4580
|
+
* Restoration update date in ISO 8601 format.
|
|
4581
|
+
*/
|
|
4582
|
+
$updatedAt: string;
|
|
4583
|
+
/**
|
|
4584
|
+
* Backup archive ID.
|
|
4585
|
+
*/
|
|
4586
|
+
archiveId: string;
|
|
4587
|
+
/**
|
|
4588
|
+
* Backup policy ID.
|
|
4589
|
+
*/
|
|
4590
|
+
policyId: string;
|
|
4591
|
+
/**
|
|
4592
|
+
* The status of the restoration. Possible values: pending, downloading, processing, completed, failed.
|
|
4593
|
+
*/
|
|
4594
|
+
status: string;
|
|
4595
|
+
/**
|
|
4596
|
+
* The backup start time.
|
|
4597
|
+
*/
|
|
4598
|
+
startedAt: string;
|
|
4599
|
+
/**
|
|
4600
|
+
* Migration ID.
|
|
4601
|
+
*/
|
|
4602
|
+
migrationId: string;
|
|
4603
|
+
/**
|
|
4604
|
+
* The services that are backed up by this policy.
|
|
4605
|
+
*/
|
|
4606
|
+
services: string[];
|
|
4607
|
+
/**
|
|
4608
|
+
* The resources that are backed up by this policy.
|
|
4609
|
+
*/
|
|
4610
|
+
resources: string[];
|
|
4611
|
+
/**
|
|
4612
|
+
* Optional data in key-value object.
|
|
4613
|
+
*/
|
|
4614
|
+
options: string;
|
|
4615
|
+
}
|
|
3942
4616
|
}
|