@appwrite.io/console 18.3.0 → 18.4.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 +2 -2
- package/dist/cjs/sdk.js +3141 -384
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3138 -385
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3141 -384
- package/package.json +1 -1
- package/types/enums/analytics-dimension.d.ts +24 -0
- package/types/enums/analytics-interval.d.ts +6 -0
- package/types/enums/platform-resource-type.d.ts +11 -0
- package/types/enums/project-auth-method-id.d.ts +2 -1
- package/types/enums/project-key-scopes.d.ts +5 -1
- package/types/enums/project-policy-id.d.ts +2 -1
- package/types/enums/project-resource-type.d.ts +13 -0
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +2 -1
- package/types/enums/query-suggestion-resource.d.ts +8 -0
- package/types/enums/usage-event-metric.d.ts +3 -0
- package/types/enums/usage-gauge-metric.d.ts +1 -0
- package/types/enums/video-output.d.ts +5 -0
- package/types/enums/video-rendition-status.d.ts +9 -0
- package/types/index.d.ts +11 -0
- package/types/models.d.ts +595 -55
- package/types/services/account.d.ts +158 -0
- package/types/services/admin.d.ts +80 -0
- package/types/services/analytics-tracking.d.ts +211 -0
- package/types/services/analytics.d.ts +254 -0
- package/types/services/project.d.ts +40 -12
- package/types/services/push.d.ts +2 -2
- package/types/services/teams.d.ts +4 -1
- package/types/services/users.d.ts +69 -0
- package/types/services/videos.d.ts +860 -0
- package/types/service.d.ts +0 -11
package/types/models.d.ts
CHANGED
|
@@ -229,6 +229,58 @@ export declare namespace Models {
|
|
|
229
229
|
*/
|
|
230
230
|
tokens: ResourceToken[];
|
|
231
231
|
};
|
|
232
|
+
/**
|
|
233
|
+
* Videos List
|
|
234
|
+
*/
|
|
235
|
+
export type VideoList = {
|
|
236
|
+
/**
|
|
237
|
+
* Total number of videos that matched your query.
|
|
238
|
+
*/
|
|
239
|
+
total: number;
|
|
240
|
+
/**
|
|
241
|
+
* List of videos.
|
|
242
|
+
*/
|
|
243
|
+
videos: Video[];
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Video Profiles List
|
|
247
|
+
*/
|
|
248
|
+
export type VideoProfileList = {
|
|
249
|
+
/**
|
|
250
|
+
* Total number of profiles that matched your query.
|
|
251
|
+
*/
|
|
252
|
+
total: number;
|
|
253
|
+
/**
|
|
254
|
+
* List of profiles.
|
|
255
|
+
*/
|
|
256
|
+
profiles: VideoProfile[];
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Video Renditions List
|
|
260
|
+
*/
|
|
261
|
+
export type VideoRenditionList = {
|
|
262
|
+
/**
|
|
263
|
+
* Total number of renditions that matched your query.
|
|
264
|
+
*/
|
|
265
|
+
total: number;
|
|
266
|
+
/**
|
|
267
|
+
* List of renditions.
|
|
268
|
+
*/
|
|
269
|
+
renditions: VideoRendition[];
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Video Subtitles List
|
|
273
|
+
*/
|
|
274
|
+
export type VideoSubtitleList = {
|
|
275
|
+
/**
|
|
276
|
+
* Total number of subtitles that matched your query.
|
|
277
|
+
*/
|
|
278
|
+
total: number;
|
|
279
|
+
/**
|
|
280
|
+
* List of subtitles.
|
|
281
|
+
*/
|
|
282
|
+
subtitles: VideoSubtitle[];
|
|
283
|
+
};
|
|
232
284
|
/**
|
|
233
285
|
* Teams List
|
|
234
286
|
*/
|
|
@@ -598,7 +650,7 @@ export declare namespace Models {
|
|
|
598
650
|
/**
|
|
599
651
|
* List of policies.
|
|
600
652
|
*/
|
|
601
|
-
policies: (Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail)[];
|
|
653
|
+
policies: (Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail | Models.PolicyPasskey)[];
|
|
602
654
|
};
|
|
603
655
|
/**
|
|
604
656
|
* Email Templates List
|
|
@@ -6786,6 +6838,27 @@ export declare namespace Models {
|
|
|
6786
6838
|
*/
|
|
6787
6839
|
custom: boolean;
|
|
6788
6840
|
};
|
|
6841
|
+
/**
|
|
6842
|
+
* Policy Passkey
|
|
6843
|
+
*/
|
|
6844
|
+
export type PolicyPasskey = {
|
|
6845
|
+
/**
|
|
6846
|
+
* Policy ID.
|
|
6847
|
+
*/
|
|
6848
|
+
$id: string;
|
|
6849
|
+
/**
|
|
6850
|
+
* Whether the passkey auth method is enabled. Toggle it with the update auth method endpoint.
|
|
6851
|
+
*/
|
|
6852
|
+
enabled: boolean;
|
|
6853
|
+
/**
|
|
6854
|
+
* Relying party ID passkeys are bound to. Empty until configured.
|
|
6855
|
+
*/
|
|
6856
|
+
rpId: string;
|
|
6857
|
+
/**
|
|
6858
|
+
* Web origins allowed to register and sign in with passkeys.
|
|
6859
|
+
*/
|
|
6860
|
+
origins: string[];
|
|
6861
|
+
};
|
|
6789
6862
|
/**
|
|
6790
6863
|
* Policy Deny Aliased Email
|
|
6791
6864
|
*/
|
|
@@ -6924,6 +6997,10 @@ export declare namespace Models {
|
|
|
6924
6997
|
* Android application ID.
|
|
6925
6998
|
*/
|
|
6926
6999
|
applicationId: string;
|
|
7000
|
+
/**
|
|
7001
|
+
* SHA-256 fingerprints of the certificates the app is signed with. Passkeys created in the app are accepted when its signature matches one.
|
|
7002
|
+
*/
|
|
7003
|
+
fingerprints: string[];
|
|
6927
7004
|
};
|
|
6928
7005
|
/**
|
|
6929
7006
|
* Platform Windows
|
|
@@ -7452,7 +7529,7 @@ export declare namespace Models {
|
|
|
7452
7529
|
*/
|
|
7453
7530
|
deploymentId: string;
|
|
7454
7531
|
/**
|
|
7455
|
-
* Type of deployment
|
|
7532
|
+
* Type of deployment resource: function, site, or dedicatedDatabase.
|
|
7456
7533
|
*/
|
|
7457
7534
|
deploymentResourceType?: ProxyRuleDeploymentResourceType;
|
|
7458
7535
|
/**
|
|
@@ -7843,6 +7920,73 @@ export declare namespace Models {
|
|
|
7843
7920
|
*/
|
|
7844
7921
|
code: string;
|
|
7845
7922
|
};
|
|
7923
|
+
/**
|
|
7924
|
+
* Passkey
|
|
7925
|
+
*/
|
|
7926
|
+
export type Passkey = {
|
|
7927
|
+
/**
|
|
7928
|
+
* Passkey ID.
|
|
7929
|
+
*/
|
|
7930
|
+
$id: string;
|
|
7931
|
+
/**
|
|
7932
|
+
* Passkey creation date in ISO 8601 format.
|
|
7933
|
+
*/
|
|
7934
|
+
$createdAt: string;
|
|
7935
|
+
/**
|
|
7936
|
+
* Passkey update date in ISO 8601 format.
|
|
7937
|
+
*/
|
|
7938
|
+
$updatedAt: string;
|
|
7939
|
+
/**
|
|
7940
|
+
* Passkey name.
|
|
7941
|
+
*/
|
|
7942
|
+
name: string;
|
|
7943
|
+
/**
|
|
7944
|
+
* Most recent sign-in with this passkey in ISO 8601 format. Empty until the passkey is used to sign in.
|
|
7945
|
+
*/
|
|
7946
|
+
accessedAt: string;
|
|
7947
|
+
/**
|
|
7948
|
+
* Whether the passkey is synced to a cloud account, such as iCloud Keychain or Google Password Manager, rather than bound to one device.
|
|
7949
|
+
*/
|
|
7950
|
+
backedUp: boolean;
|
|
7951
|
+
};
|
|
7952
|
+
/**
|
|
7953
|
+
* Passkey Challenge
|
|
7954
|
+
*/
|
|
7955
|
+
export type PasskeyChallenge = {
|
|
7956
|
+
/**
|
|
7957
|
+
* Challenge ID. Pass it back with the credential to complete the ceremony.
|
|
7958
|
+
*/
|
|
7959
|
+
$id: string;
|
|
7960
|
+
/**
|
|
7961
|
+
* Challenge creation date in ISO 8601 format.
|
|
7962
|
+
*/
|
|
7963
|
+
$createdAt: string;
|
|
7964
|
+
/**
|
|
7965
|
+
* ID of the passkey being registered. Empty for sign-in challenges.
|
|
7966
|
+
*/
|
|
7967
|
+
passkeyId: string;
|
|
7968
|
+
/**
|
|
7969
|
+
* Challenge expiration date in ISO 8601 format.
|
|
7970
|
+
*/
|
|
7971
|
+
expire: string;
|
|
7972
|
+
/**
|
|
7973
|
+
* WebAuthn options in JSON form. Pass them to `PublicKeyCredential.parseCreationOptionsFromJSON()` when registering, or `PublicKeyCredential.parseRequestOptionsFromJSON()` when signing in.
|
|
7974
|
+
*/
|
|
7975
|
+
publicKey: object;
|
|
7976
|
+
};
|
|
7977
|
+
/**
|
|
7978
|
+
* Passkeys List
|
|
7979
|
+
*/
|
|
7980
|
+
export type PasskeyList = {
|
|
7981
|
+
/**
|
|
7982
|
+
* Total number of passkeys that matched your query.
|
|
7983
|
+
*/
|
|
7984
|
+
total: number;
|
|
7985
|
+
/**
|
|
7986
|
+
* List of passkeys.
|
|
7987
|
+
*/
|
|
7988
|
+
passkeys: Passkey[];
|
|
7989
|
+
};
|
|
7846
7990
|
/**
|
|
7847
7991
|
* MFA Recovery Codes
|
|
7848
7992
|
*/
|
|
@@ -8497,6 +8641,274 @@ export declare namespace Models {
|
|
|
8497
8641
|
*/
|
|
8498
8642
|
analyzedAt?: string;
|
|
8499
8643
|
};
|
|
8644
|
+
/**
|
|
8645
|
+
* Video
|
|
8646
|
+
*/
|
|
8647
|
+
export type Video = {
|
|
8648
|
+
/**
|
|
8649
|
+
* Video ID.
|
|
8650
|
+
*/
|
|
8651
|
+
$id: string;
|
|
8652
|
+
/**
|
|
8653
|
+
* Video creation time in ISO 8601 format.
|
|
8654
|
+
*/
|
|
8655
|
+
$createdAt: string;
|
|
8656
|
+
/**
|
|
8657
|
+
* Video update date in ISO 8601 format.
|
|
8658
|
+
*/
|
|
8659
|
+
$updatedAt: string;
|
|
8660
|
+
/**
|
|
8661
|
+
* Storage bucket ID holding the source file.
|
|
8662
|
+
*/
|
|
8663
|
+
bucketId: string;
|
|
8664
|
+
/**
|
|
8665
|
+
* Source file ID.
|
|
8666
|
+
*/
|
|
8667
|
+
fileId: string;
|
|
8668
|
+
/**
|
|
8669
|
+
* Video name.
|
|
8670
|
+
*/
|
|
8671
|
+
name: string;
|
|
8672
|
+
/**
|
|
8673
|
+
* Preview image ID, taken from the sprite timeline.
|
|
8674
|
+
*/
|
|
8675
|
+
previewId: string;
|
|
8676
|
+
/**
|
|
8677
|
+
* Source file size in bytes.
|
|
8678
|
+
*/
|
|
8679
|
+
size: number;
|
|
8680
|
+
/**
|
|
8681
|
+
* Source status: one of `pending`, `downloading`, `ready`, `removed`, `error` or `aborted`.
|
|
8682
|
+
*/
|
|
8683
|
+
status: string;
|
|
8684
|
+
/**
|
|
8685
|
+
* Total number of chunks in the source download.
|
|
8686
|
+
*/
|
|
8687
|
+
chunksTotal: number;
|
|
8688
|
+
/**
|
|
8689
|
+
* Number of source chunks downloaded so far.
|
|
8690
|
+
*/
|
|
8691
|
+
chunksUploaded: number;
|
|
8692
|
+
/**
|
|
8693
|
+
* Container format.
|
|
8694
|
+
*/
|
|
8695
|
+
format: string;
|
|
8696
|
+
/**
|
|
8697
|
+
* Video duration in milliseconds.
|
|
8698
|
+
*/
|
|
8699
|
+
duration: number;
|
|
8700
|
+
/**
|
|
8701
|
+
* Video width in pixels.
|
|
8702
|
+
*/
|
|
8703
|
+
width: number;
|
|
8704
|
+
/**
|
|
8705
|
+
* Video height in pixels.
|
|
8706
|
+
*/
|
|
8707
|
+
height: number;
|
|
8708
|
+
/**
|
|
8709
|
+
* Video aspect ratio.
|
|
8710
|
+
*/
|
|
8711
|
+
aspectRatio: string;
|
|
8712
|
+
/**
|
|
8713
|
+
* Video codec.
|
|
8714
|
+
*/
|
|
8715
|
+
videoCodec: string;
|
|
8716
|
+
/**
|
|
8717
|
+
* Video format.
|
|
8718
|
+
*/
|
|
8719
|
+
videoFormat: string;
|
|
8720
|
+
/**
|
|
8721
|
+
* Video format profile.
|
|
8722
|
+
*/
|
|
8723
|
+
videoFormatProfile: string;
|
|
8724
|
+
/**
|
|
8725
|
+
* Video bitrate in bits per second.
|
|
8726
|
+
*/
|
|
8727
|
+
videoBitRate: number;
|
|
8728
|
+
/**
|
|
8729
|
+
* Video frame rate.
|
|
8730
|
+
*/
|
|
8731
|
+
videoFrameRate: string;
|
|
8732
|
+
/**
|
|
8733
|
+
* Video frame rate mode.
|
|
8734
|
+
*/
|
|
8735
|
+
videoFrameRateMode: string;
|
|
8736
|
+
/**
|
|
8737
|
+
* Audio codec.
|
|
8738
|
+
*/
|
|
8739
|
+
audioCodec: string;
|
|
8740
|
+
/**
|
|
8741
|
+
* Audio format.
|
|
8742
|
+
*/
|
|
8743
|
+
audioFormat: string;
|
|
8744
|
+
/**
|
|
8745
|
+
* Audio bitrate in bits per second.
|
|
8746
|
+
*/
|
|
8747
|
+
audioBitRate: number;
|
|
8748
|
+
/**
|
|
8749
|
+
* Audio sample rate.
|
|
8750
|
+
*/
|
|
8751
|
+
audioSampleRate: string;
|
|
8752
|
+
};
|
|
8753
|
+
/**
|
|
8754
|
+
* Video profile
|
|
8755
|
+
*/
|
|
8756
|
+
export type VideoProfile = {
|
|
8757
|
+
/**
|
|
8758
|
+
* Video profile ID.
|
|
8759
|
+
*/
|
|
8760
|
+
$id: string;
|
|
8761
|
+
/**
|
|
8762
|
+
* Video profile creation time in ISO 8601 format.
|
|
8763
|
+
*/
|
|
8764
|
+
$createdAt: string;
|
|
8765
|
+
/**
|
|
8766
|
+
* Video profile update date in ISO 8601 format.
|
|
8767
|
+
*/
|
|
8768
|
+
$updatedAt: string;
|
|
8769
|
+
/**
|
|
8770
|
+
* Video profile name.
|
|
8771
|
+
*/
|
|
8772
|
+
name: string;
|
|
8773
|
+
/**
|
|
8774
|
+
* Target video bitrate in kilobits per second.
|
|
8775
|
+
*/
|
|
8776
|
+
videoBitRate: number;
|
|
8777
|
+
/**
|
|
8778
|
+
* Target audio bitrate in kilobits per second.
|
|
8779
|
+
*/
|
|
8780
|
+
audioBitRate: number;
|
|
8781
|
+
/**
|
|
8782
|
+
* Target video width in pixels.
|
|
8783
|
+
*/
|
|
8784
|
+
width: number;
|
|
8785
|
+
/**
|
|
8786
|
+
* Target video height in pixels.
|
|
8787
|
+
*/
|
|
8788
|
+
height: number;
|
|
8789
|
+
};
|
|
8790
|
+
/**
|
|
8791
|
+
* Video rendition
|
|
8792
|
+
*/
|
|
8793
|
+
export type VideoRendition = {
|
|
8794
|
+
/**
|
|
8795
|
+
* Rendition ID.
|
|
8796
|
+
*/
|
|
8797
|
+
$id: string;
|
|
8798
|
+
/**
|
|
8799
|
+
* Rendition creation time in ISO 8601 format.
|
|
8800
|
+
*/
|
|
8801
|
+
$createdAt: string;
|
|
8802
|
+
/**
|
|
8803
|
+
* Rendition update date in ISO 8601 format.
|
|
8804
|
+
*/
|
|
8805
|
+
$updatedAt: string;
|
|
8806
|
+
/**
|
|
8807
|
+
* Video ID.
|
|
8808
|
+
*/
|
|
8809
|
+
videoId: string;
|
|
8810
|
+
/**
|
|
8811
|
+
* Video profile ID this rendition was encoded against.
|
|
8812
|
+
*/
|
|
8813
|
+
profileId: string;
|
|
8814
|
+
/**
|
|
8815
|
+
* Rendition name, derived from its dimensions and bitrate.
|
|
8816
|
+
*/
|
|
8817
|
+
name: string;
|
|
8818
|
+
/**
|
|
8819
|
+
* Transcoding start time in ISO 8601 format.
|
|
8820
|
+
*/
|
|
8821
|
+
startedAt: string;
|
|
8822
|
+
/**
|
|
8823
|
+
* Transcoding end time in ISO 8601 format.
|
|
8824
|
+
*/
|
|
8825
|
+
endedAt: string;
|
|
8826
|
+
/**
|
|
8827
|
+
* Rendition width in pixels.
|
|
8828
|
+
*/
|
|
8829
|
+
width: number;
|
|
8830
|
+
/**
|
|
8831
|
+
* Rendition height in pixels.
|
|
8832
|
+
*/
|
|
8833
|
+
height: number;
|
|
8834
|
+
/**
|
|
8835
|
+
* Video bitrate in kilobits per second.
|
|
8836
|
+
*/
|
|
8837
|
+
videoBitRate: number;
|
|
8838
|
+
/**
|
|
8839
|
+
* Audio bitrate in kilobits per second.
|
|
8840
|
+
*/
|
|
8841
|
+
audioBitRate: number;
|
|
8842
|
+
/**
|
|
8843
|
+
* Longest segment duration in seconds.
|
|
8844
|
+
*/
|
|
8845
|
+
targetDuration: string;
|
|
8846
|
+
/**
|
|
8847
|
+
* Transcoding status: one of `pending`, `started`, `ended`, `uploading`, `ready`, `error` or `aborted`.
|
|
8848
|
+
*/
|
|
8849
|
+
status: string;
|
|
8850
|
+
/**
|
|
8851
|
+
* Transcoding progress as a percentage.
|
|
8852
|
+
*/
|
|
8853
|
+
progress: string;
|
|
8854
|
+
/**
|
|
8855
|
+
* Streaming output format: `hls`, `dash`, or `cmaf`.
|
|
8856
|
+
*/
|
|
8857
|
+
output: string;
|
|
8858
|
+
};
|
|
8859
|
+
/**
|
|
8860
|
+
* Video subtitle
|
|
8861
|
+
*/
|
|
8862
|
+
export type VideoSubtitle = {
|
|
8863
|
+
/**
|
|
8864
|
+
* Subtitle ID.
|
|
8865
|
+
*/
|
|
8866
|
+
$id: string;
|
|
8867
|
+
/**
|
|
8868
|
+
* Subtitle creation time in ISO 8601 format.
|
|
8869
|
+
*/
|
|
8870
|
+
$createdAt: string;
|
|
8871
|
+
/**
|
|
8872
|
+
* Subtitle update date in ISO 8601 format.
|
|
8873
|
+
*/
|
|
8874
|
+
$updatedAt: string;
|
|
8875
|
+
/**
|
|
8876
|
+
* Video ID.
|
|
8877
|
+
*/
|
|
8878
|
+
videoId: string;
|
|
8879
|
+
/**
|
|
8880
|
+
* Storage bucket ID holding the subtitle file.
|
|
8881
|
+
*/
|
|
8882
|
+
bucketId: string;
|
|
8883
|
+
/**
|
|
8884
|
+
* Subtitle file ID.
|
|
8885
|
+
*/
|
|
8886
|
+
fileId: string;
|
|
8887
|
+
/**
|
|
8888
|
+
* Subtitle display name.
|
|
8889
|
+
*/
|
|
8890
|
+
name: string;
|
|
8891
|
+
/**
|
|
8892
|
+
* Subtitle ISO 639-2 language code.
|
|
8893
|
+
*/
|
|
8894
|
+
code: string;
|
|
8895
|
+
/**
|
|
8896
|
+
* Is this the default subtitle track?
|
|
8897
|
+
*/
|
|
8898
|
+
default: boolean;
|
|
8899
|
+
/**
|
|
8900
|
+
* Was this track auto-extracted from the source container? Extracted tracks have no backing file; extraction runs once per video, so a deleted extracted track is not re-created.
|
|
8901
|
+
*/
|
|
8902
|
+
embedded: boolean;
|
|
8903
|
+
/**
|
|
8904
|
+
* Longest segment duration in seconds.
|
|
8905
|
+
*/
|
|
8906
|
+
targetDuration: string;
|
|
8907
|
+
/**
|
|
8908
|
+
* Packaging status: one of `pending`, `started`, `ready` or `error`.
|
|
8909
|
+
*/
|
|
8910
|
+
status: string;
|
|
8911
|
+
};
|
|
8500
8912
|
/**
|
|
8501
8913
|
* ActivityEvent
|
|
8502
8914
|
*/
|
|
@@ -8912,6 +9324,117 @@ export declare namespace Models {
|
|
|
8912
9324
|
*/
|
|
8913
9325
|
resources: UsageResources[];
|
|
8914
9326
|
};
|
|
9327
|
+
/**
|
|
9328
|
+
* AnalyticsMetric
|
|
9329
|
+
*/
|
|
9330
|
+
export type AnalyticsMetric = {
|
|
9331
|
+
/**
|
|
9332
|
+
* Dimension value this row covers. Null when no dimension was requested, empty when the dimension could not be derived for those events.
|
|
9333
|
+
*/
|
|
9334
|
+
value?: string;
|
|
9335
|
+
/**
|
|
9336
|
+
* Start of the time bucket this row covers, in ISO 8601. Null when no interval was requested.
|
|
9337
|
+
*/
|
|
9338
|
+
date?: string;
|
|
9339
|
+
/**
|
|
9340
|
+
* Unique visitors in the requested range.
|
|
9341
|
+
*/
|
|
9342
|
+
visitors: number;
|
|
9343
|
+
/**
|
|
9344
|
+
* Unique sessions in the requested range.
|
|
9345
|
+
*/
|
|
9346
|
+
sessions: number;
|
|
9347
|
+
/**
|
|
9348
|
+
* Total pageview events (events with name="pageview") in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9349
|
+
*/
|
|
9350
|
+
pageviews?: number;
|
|
9351
|
+
/**
|
|
9352
|
+
* Total events in the requested range.
|
|
9353
|
+
*/
|
|
9354
|
+
events: number;
|
|
9355
|
+
/**
|
|
9356
|
+
* Total sessions with activity in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9357
|
+
*/
|
|
9358
|
+
visits?: number;
|
|
9359
|
+
/**
|
|
9360
|
+
* Share of single-event sessions, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9361
|
+
*/
|
|
9362
|
+
bounceRate?: number;
|
|
9363
|
+
/**
|
|
9364
|
+
* Average session length in seconds, measured first event to last event. Single-event sessions count as 0. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9365
|
+
*/
|
|
9366
|
+
visitDuration?: number;
|
|
9367
|
+
/**
|
|
9368
|
+
* Average pageviews per session (pageviews divided by visits). Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9369
|
+
*/
|
|
9370
|
+
viewsPerVisit?: number;
|
|
9371
|
+
/**
|
|
9372
|
+
* Average scroll depth across events, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9373
|
+
*/
|
|
9374
|
+
scrollDepth?: number;
|
|
9375
|
+
/**
|
|
9376
|
+
* Average engaged time per session in seconds, counting only foreground time. Sessions that reported no engagement are excluded. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9377
|
+
*/
|
|
9378
|
+
engagementTime?: number;
|
|
9379
|
+
};
|
|
9380
|
+
/**
|
|
9381
|
+
* AnalyticsMetricList
|
|
9382
|
+
*/
|
|
9383
|
+
export type AnalyticsMetricList = {
|
|
9384
|
+
/**
|
|
9385
|
+
* Total number of metric rows returned.
|
|
9386
|
+
*/
|
|
9387
|
+
total: number;
|
|
9388
|
+
/**
|
|
9389
|
+
* Metric rows: one per time bucket, one per dimension value, or a single row for the flat aggregate.
|
|
9390
|
+
*/
|
|
9391
|
+
metrics: AnalyticsMetric[];
|
|
9392
|
+
};
|
|
9393
|
+
/**
|
|
9394
|
+
* AnalyticsProperty
|
|
9395
|
+
*/
|
|
9396
|
+
export type AnalyticsProperty = {
|
|
9397
|
+
/**
|
|
9398
|
+
* Analytics property ID.
|
|
9399
|
+
*/
|
|
9400
|
+
$id: string;
|
|
9401
|
+
/**
|
|
9402
|
+
* Property creation date in ISO 8601 format.
|
|
9403
|
+
*/
|
|
9404
|
+
$createdAt: string;
|
|
9405
|
+
/**
|
|
9406
|
+
* Property update date in ISO 8601 format.
|
|
9407
|
+
*/
|
|
9408
|
+
$updatedAt: string;
|
|
9409
|
+
/**
|
|
9410
|
+
* Human-readable name of the tracked website or application.
|
|
9411
|
+
*/
|
|
9412
|
+
name: string;
|
|
9413
|
+
/**
|
|
9414
|
+
* Primary domain being tracked (e.g. example.com). May be empty for native apps.
|
|
9415
|
+
*/
|
|
9416
|
+
domain: string;
|
|
9417
|
+
/**
|
|
9418
|
+
* IANA timezone used to define the daily boundary for stats.
|
|
9419
|
+
*/
|
|
9420
|
+
timezone: string;
|
|
9421
|
+
/**
|
|
9422
|
+
* Whether tracking is currently active.
|
|
9423
|
+
*/
|
|
9424
|
+
enabled: boolean;
|
|
9425
|
+
/**
|
|
9426
|
+
* Whether stats for this property are publicly viewable.
|
|
9427
|
+
*/
|
|
9428
|
+
public: boolean;
|
|
9429
|
+
/**
|
|
9430
|
+
* List of origins allowed to send tracking events. Use ["*"] to allow all.
|
|
9431
|
+
*/
|
|
9432
|
+
allowedOrigins: string[];
|
|
9433
|
+
/**
|
|
9434
|
+
* Unique identifier for the tracking script snippet.
|
|
9435
|
+
*/
|
|
9436
|
+
snippetId: string;
|
|
9437
|
+
};
|
|
8915
9438
|
/**
|
|
8916
9439
|
* Team
|
|
8917
9440
|
*/
|
|
@@ -9062,17 +9585,17 @@ export declare namespace Models {
|
|
|
9062
9585
|
*/
|
|
9063
9586
|
policyId: string;
|
|
9064
9587
|
/**
|
|
9065
|
-
* Archive size in bytes.
|
|
9588
|
+
* Archive size in bytes. Null until the size is known.
|
|
9066
9589
|
*/
|
|
9067
|
-
size
|
|
9590
|
+
size?: number;
|
|
9068
9591
|
/**
|
|
9069
9592
|
* The status of the archive creation. Possible values: pending, processing, uploading, completed, failed, skipped.
|
|
9070
9593
|
*/
|
|
9071
9594
|
status: string;
|
|
9072
9595
|
/**
|
|
9073
|
-
* The backup start time.
|
|
9596
|
+
* The backup start time. Null until the backup starts.
|
|
9074
9597
|
*/
|
|
9075
|
-
startedAt
|
|
9598
|
+
startedAt?: string;
|
|
9076
9599
|
/**
|
|
9077
9600
|
* Migration ID.
|
|
9078
9601
|
*/
|
|
@@ -9224,7 +9747,7 @@ export declare namespace Models {
|
|
|
9224
9747
|
/**
|
|
9225
9748
|
* Address line 2
|
|
9226
9749
|
*/
|
|
9227
|
-
addressLine2
|
|
9750
|
+
addressLine2?: string;
|
|
9228
9751
|
/**
|
|
9229
9752
|
* Address country
|
|
9230
9753
|
*/
|
|
@@ -9236,11 +9759,11 @@ export declare namespace Models {
|
|
|
9236
9759
|
/**
|
|
9237
9760
|
* state
|
|
9238
9761
|
*/
|
|
9239
|
-
state
|
|
9762
|
+
state?: string;
|
|
9240
9763
|
/**
|
|
9241
9764
|
* postal code
|
|
9242
9765
|
*/
|
|
9243
|
-
postalCode
|
|
9766
|
+
postalCode?: string;
|
|
9244
9767
|
};
|
|
9245
9768
|
/**
|
|
9246
9769
|
* Limits
|
|
@@ -9444,9 +9967,9 @@ export declare namespace Models {
|
|
|
9444
9967
|
*/
|
|
9445
9968
|
alertLimit: number;
|
|
9446
9969
|
/**
|
|
9447
|
-
* Additional resources
|
|
9970
|
+
* Additional resources. Null when the plan does not support usage billing.
|
|
9448
9971
|
*/
|
|
9449
|
-
usage
|
|
9972
|
+
usage?: UsageBillingPlan;
|
|
9450
9973
|
/**
|
|
9451
9974
|
* Addons
|
|
9452
9975
|
*/
|
|
@@ -9793,7 +10316,7 @@ export declare namespace Models {
|
|
|
9793
10316
|
/**
|
|
9794
10317
|
* Branch port. Null until the backing reports one.
|
|
9795
10318
|
*/
|
|
9796
|
-
port
|
|
10319
|
+
port?: number;
|
|
9797
10320
|
/**
|
|
9798
10321
|
* Advertised catalog the client connects to. MySQL/MariaDB use default; Postgres uses the routing label.
|
|
9799
10322
|
*/
|
|
@@ -10097,11 +10620,11 @@ export declare namespace Models {
|
|
|
10097
10620
|
/**
|
|
10098
10621
|
* Product API that owns this database: tablesdb, documentsdb, vectorsdb, mysql, postgresql, or mongodb.
|
|
10099
10622
|
*/
|
|
10100
|
-
api
|
|
10623
|
+
api?: string;
|
|
10101
10624
|
/**
|
|
10102
10625
|
* Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
|
|
10103
10626
|
*/
|
|
10104
|
-
engine
|
|
10627
|
+
engine?: string;
|
|
10105
10628
|
/**
|
|
10106
10629
|
* Database engine version.
|
|
10107
10630
|
*/
|
|
@@ -10121,7 +10644,7 @@ export declare namespace Models {
|
|
|
10121
10644
|
/**
|
|
10122
10645
|
* Database port for connections. Derived from the engine when the backing has not reported one yet.
|
|
10123
10646
|
*/
|
|
10124
|
-
connectionPort
|
|
10647
|
+
connectionPort?: number;
|
|
10125
10648
|
/**
|
|
10126
10649
|
* Database username for connections.
|
|
10127
10650
|
*/
|
|
@@ -10133,7 +10656,7 @@ export declare namespace Models {
|
|
|
10133
10656
|
/**
|
|
10134
10657
|
* Committed generation of the primary connection credentials. Null until the rotation contract has been initialized.
|
|
10135
10658
|
*/
|
|
10136
|
-
credentialGeneration
|
|
10659
|
+
credentialGeneration?: number;
|
|
10137
10660
|
/**
|
|
10138
10661
|
* Full database connection string (URI format).
|
|
10139
10662
|
*/
|
|
@@ -10344,7 +10867,7 @@ export declare namespace Models {
|
|
|
10344
10867
|
/**
|
|
10345
10868
|
* Source database ID when restoring a backup into another database.
|
|
10346
10869
|
*/
|
|
10347
|
-
sourceDatabaseId
|
|
10870
|
+
sourceDatabaseId?: string;
|
|
10348
10871
|
/**
|
|
10349
10872
|
* Project ID.
|
|
10350
10873
|
*/
|
|
@@ -10352,7 +10875,7 @@ export declare namespace Models {
|
|
|
10352
10875
|
/**
|
|
10353
10876
|
* Backup ID used for restoration (null for PITR).
|
|
10354
10877
|
*/
|
|
10355
|
-
backupId
|
|
10878
|
+
backupId?: string;
|
|
10356
10879
|
/**
|
|
10357
10880
|
* Restoration type. Possible values: backup (restore from a specific backup snapshot), pitr (point-in-time recovery to a specific timestamp).
|
|
10358
10881
|
*/
|
|
@@ -10364,15 +10887,15 @@ export declare namespace Models {
|
|
|
10364
10887
|
/**
|
|
10365
10888
|
* Target time for PITR restoration in ISO 8601 format.
|
|
10366
10889
|
*/
|
|
10367
|
-
targetTime
|
|
10890
|
+
targetTime?: string;
|
|
10368
10891
|
/**
|
|
10369
10892
|
* Restoration start time in ISO 8601 format.
|
|
10370
10893
|
*/
|
|
10371
|
-
startedAt
|
|
10894
|
+
startedAt?: string;
|
|
10372
10895
|
/**
|
|
10373
10896
|
* Restoration completion time in ISO 8601 format.
|
|
10374
10897
|
*/
|
|
10375
|
-
completedAt
|
|
10898
|
+
completedAt?: string;
|
|
10376
10899
|
/**
|
|
10377
10900
|
* Error message if restoration failed.
|
|
10378
10901
|
*/
|
|
@@ -10403,9 +10926,9 @@ export declare namespace Models {
|
|
|
10403
10926
|
*/
|
|
10404
10927
|
uptime: number;
|
|
10405
10928
|
/**
|
|
10406
|
-
* Connection statistics.
|
|
10929
|
+
* Connection statistics. Null when the database has not been probed.
|
|
10407
10930
|
*/
|
|
10408
|
-
connections
|
|
10931
|
+
connections?: DatabaseStatusConnections;
|
|
10409
10932
|
/**
|
|
10410
10933
|
* Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
|
|
10411
10934
|
*/
|
|
@@ -10738,7 +11261,7 @@ export declare namespace Models {
|
|
|
10738
11261
|
/**
|
|
10739
11262
|
* Discount amount
|
|
10740
11263
|
*/
|
|
10741
|
-
discount
|
|
11264
|
+
discount?: number;
|
|
10742
11265
|
/**
|
|
10743
11266
|
* Credits amount
|
|
10744
11267
|
*/
|
|
@@ -10822,7 +11345,7 @@ export declare namespace Models {
|
|
|
10822
11345
|
/**
|
|
10823
11346
|
* Discount amount
|
|
10824
11347
|
*/
|
|
10825
|
-
discount
|
|
11348
|
+
discount?: number;
|
|
10826
11349
|
/**
|
|
10827
11350
|
* Credits amount
|
|
10828
11351
|
*/
|
|
@@ -11098,7 +11621,7 @@ export declare namespace Models {
|
|
|
11098
11621
|
/**
|
|
11099
11622
|
* Client secret for processing failed payments in front-end
|
|
11100
11623
|
*/
|
|
11101
|
-
clientSecret
|
|
11624
|
+
clientSecret?: string;
|
|
11102
11625
|
/**
|
|
11103
11626
|
* Invoice status
|
|
11104
11627
|
*/
|
|
@@ -11110,7 +11633,7 @@ export declare namespace Models {
|
|
|
11110
11633
|
/**
|
|
11111
11634
|
* Last payment error associated with the invoice
|
|
11112
11635
|
*/
|
|
11113
|
-
lastError
|
|
11636
|
+
lastError?: string;
|
|
11114
11637
|
/**
|
|
11115
11638
|
* Invoice due date.
|
|
11116
11639
|
*/
|
|
@@ -11241,15 +11764,15 @@ export declare namespace Models {
|
|
|
11241
11764
|
/**
|
|
11242
11765
|
* Billing cycle start date.
|
|
11243
11766
|
*/
|
|
11244
|
-
billingStartDate
|
|
11767
|
+
billingStartDate?: string;
|
|
11245
11768
|
/**
|
|
11246
11769
|
* Current invoice cycle start date.
|
|
11247
11770
|
*/
|
|
11248
|
-
billingCurrentInvoiceDate
|
|
11771
|
+
billingCurrentInvoiceDate?: string;
|
|
11249
11772
|
/**
|
|
11250
11773
|
* Next invoice cycle start date.
|
|
11251
11774
|
*/
|
|
11252
|
-
billingNextInvoiceDate
|
|
11775
|
+
billingNextInvoiceDate?: string;
|
|
11253
11776
|
/**
|
|
11254
11777
|
* Start date of trial.
|
|
11255
11778
|
*/
|
|
@@ -11257,19 +11780,19 @@ export declare namespace Models {
|
|
|
11257
11780
|
/**
|
|
11258
11781
|
* Number of trial days.
|
|
11259
11782
|
*/
|
|
11260
|
-
billingTrialDays
|
|
11783
|
+
billingTrialDays?: number;
|
|
11261
11784
|
/**
|
|
11262
11785
|
* Current active aggregation id.
|
|
11263
11786
|
*/
|
|
11264
|
-
billingAggregationId
|
|
11787
|
+
billingAggregationId?: string;
|
|
11265
11788
|
/**
|
|
11266
11789
|
* Current active aggregation id.
|
|
11267
11790
|
*/
|
|
11268
|
-
billingInvoiceId
|
|
11791
|
+
billingInvoiceId?: string;
|
|
11269
11792
|
/**
|
|
11270
11793
|
* Default payment method.
|
|
11271
11794
|
*/
|
|
11272
|
-
paymentMethodId
|
|
11795
|
+
paymentMethodId?: string;
|
|
11273
11796
|
/**
|
|
11274
11797
|
* Default payment method.
|
|
11275
11798
|
*/
|
|
@@ -11399,39 +11922,39 @@ export declare namespace Models {
|
|
|
11399
11922
|
/**
|
|
11400
11923
|
* Expiry month of the payment method.
|
|
11401
11924
|
*/
|
|
11402
|
-
expiryMonth
|
|
11925
|
+
expiryMonth?: number;
|
|
11403
11926
|
/**
|
|
11404
11927
|
* Expiry year of the payment method.
|
|
11405
11928
|
*/
|
|
11406
|
-
expiryYear
|
|
11929
|
+
expiryYear?: number;
|
|
11407
11930
|
/**
|
|
11408
11931
|
* Last 4 digit of the payment method
|
|
11409
11932
|
*/
|
|
11410
|
-
last4
|
|
11933
|
+
last4?: string;
|
|
11411
11934
|
/**
|
|
11412
11935
|
* Payment method brand
|
|
11413
11936
|
*/
|
|
11414
|
-
brand
|
|
11937
|
+
brand?: string;
|
|
11415
11938
|
/**
|
|
11416
11939
|
* Name of the owner
|
|
11417
11940
|
*/
|
|
11418
|
-
name
|
|
11941
|
+
name?: string;
|
|
11419
11942
|
/**
|
|
11420
11943
|
* Mandate ID of the payment method
|
|
11421
11944
|
*/
|
|
11422
|
-
mandateId
|
|
11945
|
+
mandateId?: string;
|
|
11423
11946
|
/**
|
|
11424
11947
|
* Country of the payment method
|
|
11425
11948
|
*/
|
|
11426
|
-
country
|
|
11949
|
+
country?: string;
|
|
11427
11950
|
/**
|
|
11428
11951
|
* State of the payment method
|
|
11429
11952
|
*/
|
|
11430
|
-
state
|
|
11953
|
+
state?: string;
|
|
11431
11954
|
/**
|
|
11432
11955
|
* Last payment error associated with the payment method.
|
|
11433
11956
|
*/
|
|
11434
|
-
lastError
|
|
11957
|
+
lastError?: string;
|
|
11435
11958
|
/**
|
|
11436
11959
|
* True when it's the default payment method.
|
|
11437
11960
|
*/
|
|
@@ -11804,9 +12327,9 @@ export declare namespace Models {
|
|
|
11804
12327
|
*/
|
|
11805
12328
|
status: string;
|
|
11806
12329
|
/**
|
|
11807
|
-
* The
|
|
12330
|
+
* The restoration start time. Null until the restoration starts.
|
|
11808
12331
|
*/
|
|
11809
|
-
startedAt
|
|
12332
|
+
startedAt?: string;
|
|
11810
12333
|
/**
|
|
11811
12334
|
* Migration ID.
|
|
11812
12335
|
*/
|
|
@@ -11820,9 +12343,9 @@ export declare namespace Models {
|
|
|
11820
12343
|
*/
|
|
11821
12344
|
resources: string[];
|
|
11822
12345
|
/**
|
|
11823
|
-
*
|
|
12346
|
+
* Restoration options as a key-value object.
|
|
11824
12347
|
*/
|
|
11825
|
-
options:
|
|
12348
|
+
options: object;
|
|
11826
12349
|
};
|
|
11827
12350
|
/**
|
|
11828
12351
|
* Dedicated database restorations list
|
|
@@ -12007,11 +12530,11 @@ export declare namespace Models {
|
|
|
12007
12530
|
/**
|
|
12008
12531
|
* Bandwidth additional resources
|
|
12009
12532
|
*/
|
|
12010
|
-
bandwidth
|
|
12533
|
+
bandwidth?: AdditionalResource;
|
|
12011
12534
|
/**
|
|
12012
12535
|
* Executions additional resources
|
|
12013
12536
|
*/
|
|
12014
|
-
executions
|
|
12537
|
+
executions?: AdditionalResource;
|
|
12015
12538
|
/**
|
|
12016
12539
|
* Member additional resources
|
|
12017
12540
|
*/
|
|
@@ -12019,11 +12542,11 @@ export declare namespace Models {
|
|
|
12019
12542
|
/**
|
|
12020
12543
|
* Realtime additional resources
|
|
12021
12544
|
*/
|
|
12022
|
-
realtime
|
|
12545
|
+
realtime?: AdditionalResource;
|
|
12023
12546
|
/**
|
|
12024
12547
|
* Realtime messages additional resources
|
|
12025
12548
|
*/
|
|
12026
|
-
realtimeMessages
|
|
12549
|
+
realtimeMessages?: AdditionalResource;
|
|
12027
12550
|
/**
|
|
12028
12551
|
* Realtime bandwidth additional resources
|
|
12029
12552
|
*/
|
|
@@ -12031,19 +12554,19 @@ export declare namespace Models {
|
|
|
12031
12554
|
/**
|
|
12032
12555
|
* Storage additional resources
|
|
12033
12556
|
*/
|
|
12034
|
-
storage
|
|
12557
|
+
storage?: AdditionalResource;
|
|
12035
12558
|
/**
|
|
12036
12559
|
* User additional resources
|
|
12037
12560
|
*/
|
|
12038
|
-
users
|
|
12561
|
+
users?: AdditionalResource;
|
|
12039
12562
|
/**
|
|
12040
12563
|
* GBHour additional resources
|
|
12041
12564
|
*/
|
|
12042
|
-
GBHours
|
|
12565
|
+
GBHours?: AdditionalResource;
|
|
12043
12566
|
/**
|
|
12044
12567
|
* Image transformation additional resources
|
|
12045
12568
|
*/
|
|
12046
|
-
imageTransformations
|
|
12569
|
+
imageTransformations?: AdditionalResource;
|
|
12047
12570
|
/**
|
|
12048
12571
|
* Credits additional resources
|
|
12049
12572
|
*/
|
|
@@ -12133,6 +12656,10 @@ export declare namespace Models {
|
|
|
12133
12656
|
* Aggregated stats for total backups storage.
|
|
12134
12657
|
*/
|
|
12135
12658
|
backupsStorageTotal: number;
|
|
12659
|
+
/**
|
|
12660
|
+
* Aggregated stats for total custom user photos storage.
|
|
12661
|
+
*/
|
|
12662
|
+
avatarsStorageTotal: number;
|
|
12136
12663
|
/**
|
|
12137
12664
|
* Aggregated stats for total storage.
|
|
12138
12665
|
*/
|
|
@@ -13374,6 +13901,19 @@ export declare namespace Models {
|
|
|
13374
13901
|
*/
|
|
13375
13902
|
addons: Addon[];
|
|
13376
13903
|
};
|
|
13904
|
+
/**
|
|
13905
|
+
* Analytics properties list
|
|
13906
|
+
*/
|
|
13907
|
+
export type AnalyticsPropertyList = {
|
|
13908
|
+
/**
|
|
13909
|
+
* Total number of properties that matched your query.
|
|
13910
|
+
*/
|
|
13911
|
+
total: number;
|
|
13912
|
+
/**
|
|
13913
|
+
* List of properties.
|
|
13914
|
+
*/
|
|
13915
|
+
properties: AnalyticsProperty[];
|
|
13916
|
+
};
|
|
13377
13917
|
/**
|
|
13378
13918
|
* Aggregation team list
|
|
13379
13919
|
*/
|