@appwrite.io/console 18.3.0 → 18.4.0-rc.1
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 +3115 -373
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3112 -374
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3115 -373
- 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 +591 -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 +30 -8
- package/types/services/push.d.ts +2 -2
- 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
|
*/
|
|
@@ -7452,7 +7525,7 @@ export declare namespace Models {
|
|
|
7452
7525
|
*/
|
|
7453
7526
|
deploymentId: string;
|
|
7454
7527
|
/**
|
|
7455
|
-
* Type of deployment
|
|
7528
|
+
* Type of deployment resource: function, site, or dedicatedDatabase.
|
|
7456
7529
|
*/
|
|
7457
7530
|
deploymentResourceType?: ProxyRuleDeploymentResourceType;
|
|
7458
7531
|
/**
|
|
@@ -7843,6 +7916,73 @@ export declare namespace Models {
|
|
|
7843
7916
|
*/
|
|
7844
7917
|
code: string;
|
|
7845
7918
|
};
|
|
7919
|
+
/**
|
|
7920
|
+
* Passkey
|
|
7921
|
+
*/
|
|
7922
|
+
export type Passkey = {
|
|
7923
|
+
/**
|
|
7924
|
+
* Passkey ID.
|
|
7925
|
+
*/
|
|
7926
|
+
$id: string;
|
|
7927
|
+
/**
|
|
7928
|
+
* Passkey creation date in ISO 8601 format.
|
|
7929
|
+
*/
|
|
7930
|
+
$createdAt: string;
|
|
7931
|
+
/**
|
|
7932
|
+
* Passkey update date in ISO 8601 format.
|
|
7933
|
+
*/
|
|
7934
|
+
$updatedAt: string;
|
|
7935
|
+
/**
|
|
7936
|
+
* Passkey name.
|
|
7937
|
+
*/
|
|
7938
|
+
name: string;
|
|
7939
|
+
/**
|
|
7940
|
+
* Most recent sign-in with this passkey in ISO 8601 format. Empty until the passkey is used to sign in.
|
|
7941
|
+
*/
|
|
7942
|
+
accessedAt: string;
|
|
7943
|
+
/**
|
|
7944
|
+
* Whether the passkey is synced to a cloud account, such as iCloud Keychain or Google Password Manager, rather than bound to one device.
|
|
7945
|
+
*/
|
|
7946
|
+
backedUp: boolean;
|
|
7947
|
+
};
|
|
7948
|
+
/**
|
|
7949
|
+
* Passkey Challenge
|
|
7950
|
+
*/
|
|
7951
|
+
export type PasskeyChallenge = {
|
|
7952
|
+
/**
|
|
7953
|
+
* Challenge ID. Pass it back with the credential to complete the ceremony.
|
|
7954
|
+
*/
|
|
7955
|
+
$id: string;
|
|
7956
|
+
/**
|
|
7957
|
+
* Challenge creation date in ISO 8601 format.
|
|
7958
|
+
*/
|
|
7959
|
+
$createdAt: string;
|
|
7960
|
+
/**
|
|
7961
|
+
* ID of the passkey being registered. Empty for sign-in challenges.
|
|
7962
|
+
*/
|
|
7963
|
+
passkeyId: string;
|
|
7964
|
+
/**
|
|
7965
|
+
* Challenge expiration date in ISO 8601 format.
|
|
7966
|
+
*/
|
|
7967
|
+
expire: string;
|
|
7968
|
+
/**
|
|
7969
|
+
* WebAuthn options in JSON form. Pass them to `PublicKeyCredential.parseCreationOptionsFromJSON()` when registering, or `PublicKeyCredential.parseRequestOptionsFromJSON()` when signing in.
|
|
7970
|
+
*/
|
|
7971
|
+
publicKey: object;
|
|
7972
|
+
};
|
|
7973
|
+
/**
|
|
7974
|
+
* Passkeys List
|
|
7975
|
+
*/
|
|
7976
|
+
export type PasskeyList = {
|
|
7977
|
+
/**
|
|
7978
|
+
* Total number of passkeys that matched your query.
|
|
7979
|
+
*/
|
|
7980
|
+
total: number;
|
|
7981
|
+
/**
|
|
7982
|
+
* List of passkeys.
|
|
7983
|
+
*/
|
|
7984
|
+
passkeys: Passkey[];
|
|
7985
|
+
};
|
|
7846
7986
|
/**
|
|
7847
7987
|
* MFA Recovery Codes
|
|
7848
7988
|
*/
|
|
@@ -8497,6 +8637,274 @@ export declare namespace Models {
|
|
|
8497
8637
|
*/
|
|
8498
8638
|
analyzedAt?: string;
|
|
8499
8639
|
};
|
|
8640
|
+
/**
|
|
8641
|
+
* Video
|
|
8642
|
+
*/
|
|
8643
|
+
export type Video = {
|
|
8644
|
+
/**
|
|
8645
|
+
* Video ID.
|
|
8646
|
+
*/
|
|
8647
|
+
$id: string;
|
|
8648
|
+
/**
|
|
8649
|
+
* Video creation time in ISO 8601 format.
|
|
8650
|
+
*/
|
|
8651
|
+
$createdAt: string;
|
|
8652
|
+
/**
|
|
8653
|
+
* Video update date in ISO 8601 format.
|
|
8654
|
+
*/
|
|
8655
|
+
$updatedAt: string;
|
|
8656
|
+
/**
|
|
8657
|
+
* Storage bucket ID holding the source file.
|
|
8658
|
+
*/
|
|
8659
|
+
bucketId: string;
|
|
8660
|
+
/**
|
|
8661
|
+
* Source file ID.
|
|
8662
|
+
*/
|
|
8663
|
+
fileId: string;
|
|
8664
|
+
/**
|
|
8665
|
+
* Video name.
|
|
8666
|
+
*/
|
|
8667
|
+
name: string;
|
|
8668
|
+
/**
|
|
8669
|
+
* Preview image ID, taken from the sprite timeline.
|
|
8670
|
+
*/
|
|
8671
|
+
previewId: string;
|
|
8672
|
+
/**
|
|
8673
|
+
* Source file size in bytes.
|
|
8674
|
+
*/
|
|
8675
|
+
size: number;
|
|
8676
|
+
/**
|
|
8677
|
+
* Source status: one of `pending`, `downloading`, `ready`, `removed`, `error` or `aborted`.
|
|
8678
|
+
*/
|
|
8679
|
+
status: string;
|
|
8680
|
+
/**
|
|
8681
|
+
* Total number of chunks in the source download.
|
|
8682
|
+
*/
|
|
8683
|
+
chunksTotal: number;
|
|
8684
|
+
/**
|
|
8685
|
+
* Number of source chunks downloaded so far.
|
|
8686
|
+
*/
|
|
8687
|
+
chunksUploaded: number;
|
|
8688
|
+
/**
|
|
8689
|
+
* Container format.
|
|
8690
|
+
*/
|
|
8691
|
+
format: string;
|
|
8692
|
+
/**
|
|
8693
|
+
* Video duration in milliseconds.
|
|
8694
|
+
*/
|
|
8695
|
+
duration: number;
|
|
8696
|
+
/**
|
|
8697
|
+
* Video width in pixels.
|
|
8698
|
+
*/
|
|
8699
|
+
width: number;
|
|
8700
|
+
/**
|
|
8701
|
+
* Video height in pixels.
|
|
8702
|
+
*/
|
|
8703
|
+
height: number;
|
|
8704
|
+
/**
|
|
8705
|
+
* Video aspect ratio.
|
|
8706
|
+
*/
|
|
8707
|
+
aspectRatio: string;
|
|
8708
|
+
/**
|
|
8709
|
+
* Video codec.
|
|
8710
|
+
*/
|
|
8711
|
+
videoCodec: string;
|
|
8712
|
+
/**
|
|
8713
|
+
* Video format.
|
|
8714
|
+
*/
|
|
8715
|
+
videoFormat: string;
|
|
8716
|
+
/**
|
|
8717
|
+
* Video format profile.
|
|
8718
|
+
*/
|
|
8719
|
+
videoFormatProfile: string;
|
|
8720
|
+
/**
|
|
8721
|
+
* Video bitrate in bits per second.
|
|
8722
|
+
*/
|
|
8723
|
+
videoBitRate: number;
|
|
8724
|
+
/**
|
|
8725
|
+
* Video frame rate.
|
|
8726
|
+
*/
|
|
8727
|
+
videoFrameRate: string;
|
|
8728
|
+
/**
|
|
8729
|
+
* Video frame rate mode.
|
|
8730
|
+
*/
|
|
8731
|
+
videoFrameRateMode: string;
|
|
8732
|
+
/**
|
|
8733
|
+
* Audio codec.
|
|
8734
|
+
*/
|
|
8735
|
+
audioCodec: string;
|
|
8736
|
+
/**
|
|
8737
|
+
* Audio format.
|
|
8738
|
+
*/
|
|
8739
|
+
audioFormat: string;
|
|
8740
|
+
/**
|
|
8741
|
+
* Audio bitrate in bits per second.
|
|
8742
|
+
*/
|
|
8743
|
+
audioBitRate: number;
|
|
8744
|
+
/**
|
|
8745
|
+
* Audio sample rate.
|
|
8746
|
+
*/
|
|
8747
|
+
audioSampleRate: string;
|
|
8748
|
+
};
|
|
8749
|
+
/**
|
|
8750
|
+
* Video profile
|
|
8751
|
+
*/
|
|
8752
|
+
export type VideoProfile = {
|
|
8753
|
+
/**
|
|
8754
|
+
* Video profile ID.
|
|
8755
|
+
*/
|
|
8756
|
+
$id: string;
|
|
8757
|
+
/**
|
|
8758
|
+
* Video profile creation time in ISO 8601 format.
|
|
8759
|
+
*/
|
|
8760
|
+
$createdAt: string;
|
|
8761
|
+
/**
|
|
8762
|
+
* Video profile update date in ISO 8601 format.
|
|
8763
|
+
*/
|
|
8764
|
+
$updatedAt: string;
|
|
8765
|
+
/**
|
|
8766
|
+
* Video profile name.
|
|
8767
|
+
*/
|
|
8768
|
+
name: string;
|
|
8769
|
+
/**
|
|
8770
|
+
* Target video bitrate in kilobits per second.
|
|
8771
|
+
*/
|
|
8772
|
+
videoBitRate: number;
|
|
8773
|
+
/**
|
|
8774
|
+
* Target audio bitrate in kilobits per second.
|
|
8775
|
+
*/
|
|
8776
|
+
audioBitRate: number;
|
|
8777
|
+
/**
|
|
8778
|
+
* Target video width in pixels.
|
|
8779
|
+
*/
|
|
8780
|
+
width: number;
|
|
8781
|
+
/**
|
|
8782
|
+
* Target video height in pixels.
|
|
8783
|
+
*/
|
|
8784
|
+
height: number;
|
|
8785
|
+
};
|
|
8786
|
+
/**
|
|
8787
|
+
* Video rendition
|
|
8788
|
+
*/
|
|
8789
|
+
export type VideoRendition = {
|
|
8790
|
+
/**
|
|
8791
|
+
* Rendition ID.
|
|
8792
|
+
*/
|
|
8793
|
+
$id: string;
|
|
8794
|
+
/**
|
|
8795
|
+
* Rendition creation time in ISO 8601 format.
|
|
8796
|
+
*/
|
|
8797
|
+
$createdAt: string;
|
|
8798
|
+
/**
|
|
8799
|
+
* Rendition update date in ISO 8601 format.
|
|
8800
|
+
*/
|
|
8801
|
+
$updatedAt: string;
|
|
8802
|
+
/**
|
|
8803
|
+
* Video ID.
|
|
8804
|
+
*/
|
|
8805
|
+
videoId: string;
|
|
8806
|
+
/**
|
|
8807
|
+
* Video profile ID this rendition was encoded against.
|
|
8808
|
+
*/
|
|
8809
|
+
profileId: string;
|
|
8810
|
+
/**
|
|
8811
|
+
* Rendition name, derived from its dimensions and bitrate.
|
|
8812
|
+
*/
|
|
8813
|
+
name: string;
|
|
8814
|
+
/**
|
|
8815
|
+
* Transcoding start time in ISO 8601 format.
|
|
8816
|
+
*/
|
|
8817
|
+
startedAt: string;
|
|
8818
|
+
/**
|
|
8819
|
+
* Transcoding end time in ISO 8601 format.
|
|
8820
|
+
*/
|
|
8821
|
+
endedAt: string;
|
|
8822
|
+
/**
|
|
8823
|
+
* Rendition width in pixels.
|
|
8824
|
+
*/
|
|
8825
|
+
width: number;
|
|
8826
|
+
/**
|
|
8827
|
+
* Rendition height in pixels.
|
|
8828
|
+
*/
|
|
8829
|
+
height: number;
|
|
8830
|
+
/**
|
|
8831
|
+
* Video bitrate in kilobits per second.
|
|
8832
|
+
*/
|
|
8833
|
+
videoBitRate: number;
|
|
8834
|
+
/**
|
|
8835
|
+
* Audio bitrate in kilobits per second.
|
|
8836
|
+
*/
|
|
8837
|
+
audioBitRate: number;
|
|
8838
|
+
/**
|
|
8839
|
+
* Longest segment duration in seconds.
|
|
8840
|
+
*/
|
|
8841
|
+
targetDuration: string;
|
|
8842
|
+
/**
|
|
8843
|
+
* Transcoding status: one of `pending`, `started`, `ended`, `uploading`, `ready`, `error` or `aborted`.
|
|
8844
|
+
*/
|
|
8845
|
+
status: string;
|
|
8846
|
+
/**
|
|
8847
|
+
* Transcoding progress as a percentage.
|
|
8848
|
+
*/
|
|
8849
|
+
progress: string;
|
|
8850
|
+
/**
|
|
8851
|
+
* Streaming output format: `hls`, `dash`, or `cmaf`.
|
|
8852
|
+
*/
|
|
8853
|
+
output: string;
|
|
8854
|
+
};
|
|
8855
|
+
/**
|
|
8856
|
+
* Video subtitle
|
|
8857
|
+
*/
|
|
8858
|
+
export type VideoSubtitle = {
|
|
8859
|
+
/**
|
|
8860
|
+
* Subtitle ID.
|
|
8861
|
+
*/
|
|
8862
|
+
$id: string;
|
|
8863
|
+
/**
|
|
8864
|
+
* Subtitle creation time in ISO 8601 format.
|
|
8865
|
+
*/
|
|
8866
|
+
$createdAt: string;
|
|
8867
|
+
/**
|
|
8868
|
+
* Subtitle update date in ISO 8601 format.
|
|
8869
|
+
*/
|
|
8870
|
+
$updatedAt: string;
|
|
8871
|
+
/**
|
|
8872
|
+
* Video ID.
|
|
8873
|
+
*/
|
|
8874
|
+
videoId: string;
|
|
8875
|
+
/**
|
|
8876
|
+
* Storage bucket ID holding the subtitle file.
|
|
8877
|
+
*/
|
|
8878
|
+
bucketId: string;
|
|
8879
|
+
/**
|
|
8880
|
+
* Subtitle file ID.
|
|
8881
|
+
*/
|
|
8882
|
+
fileId: string;
|
|
8883
|
+
/**
|
|
8884
|
+
* Subtitle display name.
|
|
8885
|
+
*/
|
|
8886
|
+
name: string;
|
|
8887
|
+
/**
|
|
8888
|
+
* Subtitle ISO 639-2 language code.
|
|
8889
|
+
*/
|
|
8890
|
+
code: string;
|
|
8891
|
+
/**
|
|
8892
|
+
* Is this the default subtitle track?
|
|
8893
|
+
*/
|
|
8894
|
+
default: boolean;
|
|
8895
|
+
/**
|
|
8896
|
+
* 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.
|
|
8897
|
+
*/
|
|
8898
|
+
embedded: boolean;
|
|
8899
|
+
/**
|
|
8900
|
+
* Longest segment duration in seconds.
|
|
8901
|
+
*/
|
|
8902
|
+
targetDuration: string;
|
|
8903
|
+
/**
|
|
8904
|
+
* Packaging status: one of `pending`, `started`, `ready` or `error`.
|
|
8905
|
+
*/
|
|
8906
|
+
status: string;
|
|
8907
|
+
};
|
|
8500
8908
|
/**
|
|
8501
8909
|
* ActivityEvent
|
|
8502
8910
|
*/
|
|
@@ -8912,6 +9320,117 @@ export declare namespace Models {
|
|
|
8912
9320
|
*/
|
|
8913
9321
|
resources: UsageResources[];
|
|
8914
9322
|
};
|
|
9323
|
+
/**
|
|
9324
|
+
* AnalyticsMetric
|
|
9325
|
+
*/
|
|
9326
|
+
export type AnalyticsMetric = {
|
|
9327
|
+
/**
|
|
9328
|
+
* Dimension value this row covers. Null when no dimension was requested, empty when the dimension could not be derived for those events.
|
|
9329
|
+
*/
|
|
9330
|
+
value?: string;
|
|
9331
|
+
/**
|
|
9332
|
+
* Start of the time bucket this row covers, in ISO 8601. Null when no interval was requested.
|
|
9333
|
+
*/
|
|
9334
|
+
date?: string;
|
|
9335
|
+
/**
|
|
9336
|
+
* Unique visitors in the requested range.
|
|
9337
|
+
*/
|
|
9338
|
+
visitors: number;
|
|
9339
|
+
/**
|
|
9340
|
+
* Unique sessions in the requested range.
|
|
9341
|
+
*/
|
|
9342
|
+
sessions: number;
|
|
9343
|
+
/**
|
|
9344
|
+
* Total pageview events (events with name="pageview") in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9345
|
+
*/
|
|
9346
|
+
pageviews?: number;
|
|
9347
|
+
/**
|
|
9348
|
+
* Total events in the requested range.
|
|
9349
|
+
*/
|
|
9350
|
+
events: number;
|
|
9351
|
+
/**
|
|
9352
|
+
* Total sessions with activity in the requested range. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9353
|
+
*/
|
|
9354
|
+
visits?: number;
|
|
9355
|
+
/**
|
|
9356
|
+
* Share of single-event sessions, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9357
|
+
*/
|
|
9358
|
+
bounceRate?: number;
|
|
9359
|
+
/**
|
|
9360
|
+
* 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.
|
|
9361
|
+
*/
|
|
9362
|
+
visitDuration?: number;
|
|
9363
|
+
/**
|
|
9364
|
+
* Average pageviews per session (pageviews divided by visits). Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9365
|
+
*/
|
|
9366
|
+
viewsPerVisit?: number;
|
|
9367
|
+
/**
|
|
9368
|
+
* Average scroll depth across events, as a percentage. Only the flat aggregate computes it; null on breakdown and time-series rows.
|
|
9369
|
+
*/
|
|
9370
|
+
scrollDepth?: number;
|
|
9371
|
+
/**
|
|
9372
|
+
* 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.
|
|
9373
|
+
*/
|
|
9374
|
+
engagementTime?: number;
|
|
9375
|
+
};
|
|
9376
|
+
/**
|
|
9377
|
+
* AnalyticsMetricList
|
|
9378
|
+
*/
|
|
9379
|
+
export type AnalyticsMetricList = {
|
|
9380
|
+
/**
|
|
9381
|
+
* Total number of metric rows returned.
|
|
9382
|
+
*/
|
|
9383
|
+
total: number;
|
|
9384
|
+
/**
|
|
9385
|
+
* Metric rows: one per time bucket, one per dimension value, or a single row for the flat aggregate.
|
|
9386
|
+
*/
|
|
9387
|
+
metrics: AnalyticsMetric[];
|
|
9388
|
+
};
|
|
9389
|
+
/**
|
|
9390
|
+
* AnalyticsProperty
|
|
9391
|
+
*/
|
|
9392
|
+
export type AnalyticsProperty = {
|
|
9393
|
+
/**
|
|
9394
|
+
* Analytics property ID.
|
|
9395
|
+
*/
|
|
9396
|
+
$id: string;
|
|
9397
|
+
/**
|
|
9398
|
+
* Property creation date in ISO 8601 format.
|
|
9399
|
+
*/
|
|
9400
|
+
$createdAt: string;
|
|
9401
|
+
/**
|
|
9402
|
+
* Property update date in ISO 8601 format.
|
|
9403
|
+
*/
|
|
9404
|
+
$updatedAt: string;
|
|
9405
|
+
/**
|
|
9406
|
+
* Human-readable name of the tracked website or application.
|
|
9407
|
+
*/
|
|
9408
|
+
name: string;
|
|
9409
|
+
/**
|
|
9410
|
+
* Primary domain being tracked (e.g. example.com). May be empty for native apps.
|
|
9411
|
+
*/
|
|
9412
|
+
domain: string;
|
|
9413
|
+
/**
|
|
9414
|
+
* IANA timezone used to define the daily boundary for stats.
|
|
9415
|
+
*/
|
|
9416
|
+
timezone: string;
|
|
9417
|
+
/**
|
|
9418
|
+
* Whether tracking is currently active.
|
|
9419
|
+
*/
|
|
9420
|
+
enabled: boolean;
|
|
9421
|
+
/**
|
|
9422
|
+
* Whether stats for this property are publicly viewable.
|
|
9423
|
+
*/
|
|
9424
|
+
public: boolean;
|
|
9425
|
+
/**
|
|
9426
|
+
* List of origins allowed to send tracking events. Use ["*"] to allow all.
|
|
9427
|
+
*/
|
|
9428
|
+
allowedOrigins: string[];
|
|
9429
|
+
/**
|
|
9430
|
+
* Unique identifier for the tracking script snippet.
|
|
9431
|
+
*/
|
|
9432
|
+
snippetId: string;
|
|
9433
|
+
};
|
|
8915
9434
|
/**
|
|
8916
9435
|
* Team
|
|
8917
9436
|
*/
|
|
@@ -9062,17 +9581,17 @@ export declare namespace Models {
|
|
|
9062
9581
|
*/
|
|
9063
9582
|
policyId: string;
|
|
9064
9583
|
/**
|
|
9065
|
-
* Archive size in bytes.
|
|
9584
|
+
* Archive size in bytes. Null until the size is known.
|
|
9066
9585
|
*/
|
|
9067
|
-
size
|
|
9586
|
+
size?: number;
|
|
9068
9587
|
/**
|
|
9069
9588
|
* The status of the archive creation. Possible values: pending, processing, uploading, completed, failed, skipped.
|
|
9070
9589
|
*/
|
|
9071
9590
|
status: string;
|
|
9072
9591
|
/**
|
|
9073
|
-
* The backup start time.
|
|
9592
|
+
* The backup start time. Null until the backup starts.
|
|
9074
9593
|
*/
|
|
9075
|
-
startedAt
|
|
9594
|
+
startedAt?: string;
|
|
9076
9595
|
/**
|
|
9077
9596
|
* Migration ID.
|
|
9078
9597
|
*/
|
|
@@ -9224,7 +9743,7 @@ export declare namespace Models {
|
|
|
9224
9743
|
/**
|
|
9225
9744
|
* Address line 2
|
|
9226
9745
|
*/
|
|
9227
|
-
addressLine2
|
|
9746
|
+
addressLine2?: string;
|
|
9228
9747
|
/**
|
|
9229
9748
|
* Address country
|
|
9230
9749
|
*/
|
|
@@ -9236,11 +9755,11 @@ export declare namespace Models {
|
|
|
9236
9755
|
/**
|
|
9237
9756
|
* state
|
|
9238
9757
|
*/
|
|
9239
|
-
state
|
|
9758
|
+
state?: string;
|
|
9240
9759
|
/**
|
|
9241
9760
|
* postal code
|
|
9242
9761
|
*/
|
|
9243
|
-
postalCode
|
|
9762
|
+
postalCode?: string;
|
|
9244
9763
|
};
|
|
9245
9764
|
/**
|
|
9246
9765
|
* Limits
|
|
@@ -9444,9 +9963,9 @@ export declare namespace Models {
|
|
|
9444
9963
|
*/
|
|
9445
9964
|
alertLimit: number;
|
|
9446
9965
|
/**
|
|
9447
|
-
* Additional resources
|
|
9966
|
+
* Additional resources. Null when the plan does not support usage billing.
|
|
9448
9967
|
*/
|
|
9449
|
-
usage
|
|
9968
|
+
usage?: UsageBillingPlan;
|
|
9450
9969
|
/**
|
|
9451
9970
|
* Addons
|
|
9452
9971
|
*/
|
|
@@ -9793,7 +10312,7 @@ export declare namespace Models {
|
|
|
9793
10312
|
/**
|
|
9794
10313
|
* Branch port. Null until the backing reports one.
|
|
9795
10314
|
*/
|
|
9796
|
-
port
|
|
10315
|
+
port?: number;
|
|
9797
10316
|
/**
|
|
9798
10317
|
* Advertised catalog the client connects to. MySQL/MariaDB use default; Postgres uses the routing label.
|
|
9799
10318
|
*/
|
|
@@ -10097,11 +10616,11 @@ export declare namespace Models {
|
|
|
10097
10616
|
/**
|
|
10098
10617
|
* Product API that owns this database: tablesdb, documentsdb, vectorsdb, mysql, postgresql, or mongodb.
|
|
10099
10618
|
*/
|
|
10100
|
-
api
|
|
10619
|
+
api?: string;
|
|
10101
10620
|
/**
|
|
10102
10621
|
* Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
|
|
10103
10622
|
*/
|
|
10104
|
-
engine
|
|
10623
|
+
engine?: string;
|
|
10105
10624
|
/**
|
|
10106
10625
|
* Database engine version.
|
|
10107
10626
|
*/
|
|
@@ -10121,7 +10640,7 @@ export declare namespace Models {
|
|
|
10121
10640
|
/**
|
|
10122
10641
|
* Database port for connections. Derived from the engine when the backing has not reported one yet.
|
|
10123
10642
|
*/
|
|
10124
|
-
connectionPort
|
|
10643
|
+
connectionPort?: number;
|
|
10125
10644
|
/**
|
|
10126
10645
|
* Database username for connections.
|
|
10127
10646
|
*/
|
|
@@ -10133,7 +10652,7 @@ export declare namespace Models {
|
|
|
10133
10652
|
/**
|
|
10134
10653
|
* Committed generation of the primary connection credentials. Null until the rotation contract has been initialized.
|
|
10135
10654
|
*/
|
|
10136
|
-
credentialGeneration
|
|
10655
|
+
credentialGeneration?: number;
|
|
10137
10656
|
/**
|
|
10138
10657
|
* Full database connection string (URI format).
|
|
10139
10658
|
*/
|
|
@@ -10344,7 +10863,7 @@ export declare namespace Models {
|
|
|
10344
10863
|
/**
|
|
10345
10864
|
* Source database ID when restoring a backup into another database.
|
|
10346
10865
|
*/
|
|
10347
|
-
sourceDatabaseId
|
|
10866
|
+
sourceDatabaseId?: string;
|
|
10348
10867
|
/**
|
|
10349
10868
|
* Project ID.
|
|
10350
10869
|
*/
|
|
@@ -10352,7 +10871,7 @@ export declare namespace Models {
|
|
|
10352
10871
|
/**
|
|
10353
10872
|
* Backup ID used for restoration (null for PITR).
|
|
10354
10873
|
*/
|
|
10355
|
-
backupId
|
|
10874
|
+
backupId?: string;
|
|
10356
10875
|
/**
|
|
10357
10876
|
* Restoration type. Possible values: backup (restore from a specific backup snapshot), pitr (point-in-time recovery to a specific timestamp).
|
|
10358
10877
|
*/
|
|
@@ -10364,15 +10883,15 @@ export declare namespace Models {
|
|
|
10364
10883
|
/**
|
|
10365
10884
|
* Target time for PITR restoration in ISO 8601 format.
|
|
10366
10885
|
*/
|
|
10367
|
-
targetTime
|
|
10886
|
+
targetTime?: string;
|
|
10368
10887
|
/**
|
|
10369
10888
|
* Restoration start time in ISO 8601 format.
|
|
10370
10889
|
*/
|
|
10371
|
-
startedAt
|
|
10890
|
+
startedAt?: string;
|
|
10372
10891
|
/**
|
|
10373
10892
|
* Restoration completion time in ISO 8601 format.
|
|
10374
10893
|
*/
|
|
10375
|
-
completedAt
|
|
10894
|
+
completedAt?: string;
|
|
10376
10895
|
/**
|
|
10377
10896
|
* Error message if restoration failed.
|
|
10378
10897
|
*/
|
|
@@ -10403,9 +10922,9 @@ export declare namespace Models {
|
|
|
10403
10922
|
*/
|
|
10404
10923
|
uptime: number;
|
|
10405
10924
|
/**
|
|
10406
|
-
* Connection statistics.
|
|
10925
|
+
* Connection statistics. Null when the database has not been probed.
|
|
10407
10926
|
*/
|
|
10408
|
-
connections
|
|
10927
|
+
connections?: DatabaseStatusConnections;
|
|
10409
10928
|
/**
|
|
10410
10929
|
* Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
|
|
10411
10930
|
*/
|
|
@@ -10738,7 +11257,7 @@ export declare namespace Models {
|
|
|
10738
11257
|
/**
|
|
10739
11258
|
* Discount amount
|
|
10740
11259
|
*/
|
|
10741
|
-
discount
|
|
11260
|
+
discount?: number;
|
|
10742
11261
|
/**
|
|
10743
11262
|
* Credits amount
|
|
10744
11263
|
*/
|
|
@@ -10822,7 +11341,7 @@ export declare namespace Models {
|
|
|
10822
11341
|
/**
|
|
10823
11342
|
* Discount amount
|
|
10824
11343
|
*/
|
|
10825
|
-
discount
|
|
11344
|
+
discount?: number;
|
|
10826
11345
|
/**
|
|
10827
11346
|
* Credits amount
|
|
10828
11347
|
*/
|
|
@@ -11098,7 +11617,7 @@ export declare namespace Models {
|
|
|
11098
11617
|
/**
|
|
11099
11618
|
* Client secret for processing failed payments in front-end
|
|
11100
11619
|
*/
|
|
11101
|
-
clientSecret
|
|
11620
|
+
clientSecret?: string;
|
|
11102
11621
|
/**
|
|
11103
11622
|
* Invoice status
|
|
11104
11623
|
*/
|
|
@@ -11110,7 +11629,7 @@ export declare namespace Models {
|
|
|
11110
11629
|
/**
|
|
11111
11630
|
* Last payment error associated with the invoice
|
|
11112
11631
|
*/
|
|
11113
|
-
lastError
|
|
11632
|
+
lastError?: string;
|
|
11114
11633
|
/**
|
|
11115
11634
|
* Invoice due date.
|
|
11116
11635
|
*/
|
|
@@ -11241,15 +11760,15 @@ export declare namespace Models {
|
|
|
11241
11760
|
/**
|
|
11242
11761
|
* Billing cycle start date.
|
|
11243
11762
|
*/
|
|
11244
|
-
billingStartDate
|
|
11763
|
+
billingStartDate?: string;
|
|
11245
11764
|
/**
|
|
11246
11765
|
* Current invoice cycle start date.
|
|
11247
11766
|
*/
|
|
11248
|
-
billingCurrentInvoiceDate
|
|
11767
|
+
billingCurrentInvoiceDate?: string;
|
|
11249
11768
|
/**
|
|
11250
11769
|
* Next invoice cycle start date.
|
|
11251
11770
|
*/
|
|
11252
|
-
billingNextInvoiceDate
|
|
11771
|
+
billingNextInvoiceDate?: string;
|
|
11253
11772
|
/**
|
|
11254
11773
|
* Start date of trial.
|
|
11255
11774
|
*/
|
|
@@ -11257,19 +11776,19 @@ export declare namespace Models {
|
|
|
11257
11776
|
/**
|
|
11258
11777
|
* Number of trial days.
|
|
11259
11778
|
*/
|
|
11260
|
-
billingTrialDays
|
|
11779
|
+
billingTrialDays?: number;
|
|
11261
11780
|
/**
|
|
11262
11781
|
* Current active aggregation id.
|
|
11263
11782
|
*/
|
|
11264
|
-
billingAggregationId
|
|
11783
|
+
billingAggregationId?: string;
|
|
11265
11784
|
/**
|
|
11266
11785
|
* Current active aggregation id.
|
|
11267
11786
|
*/
|
|
11268
|
-
billingInvoiceId
|
|
11787
|
+
billingInvoiceId?: string;
|
|
11269
11788
|
/**
|
|
11270
11789
|
* Default payment method.
|
|
11271
11790
|
*/
|
|
11272
|
-
paymentMethodId
|
|
11791
|
+
paymentMethodId?: string;
|
|
11273
11792
|
/**
|
|
11274
11793
|
* Default payment method.
|
|
11275
11794
|
*/
|
|
@@ -11399,39 +11918,39 @@ export declare namespace Models {
|
|
|
11399
11918
|
/**
|
|
11400
11919
|
* Expiry month of the payment method.
|
|
11401
11920
|
*/
|
|
11402
|
-
expiryMonth
|
|
11921
|
+
expiryMonth?: number;
|
|
11403
11922
|
/**
|
|
11404
11923
|
* Expiry year of the payment method.
|
|
11405
11924
|
*/
|
|
11406
|
-
expiryYear
|
|
11925
|
+
expiryYear?: number;
|
|
11407
11926
|
/**
|
|
11408
11927
|
* Last 4 digit of the payment method
|
|
11409
11928
|
*/
|
|
11410
|
-
last4
|
|
11929
|
+
last4?: string;
|
|
11411
11930
|
/**
|
|
11412
11931
|
* Payment method brand
|
|
11413
11932
|
*/
|
|
11414
|
-
brand
|
|
11933
|
+
brand?: string;
|
|
11415
11934
|
/**
|
|
11416
11935
|
* Name of the owner
|
|
11417
11936
|
*/
|
|
11418
|
-
name
|
|
11937
|
+
name?: string;
|
|
11419
11938
|
/**
|
|
11420
11939
|
* Mandate ID of the payment method
|
|
11421
11940
|
*/
|
|
11422
|
-
mandateId
|
|
11941
|
+
mandateId?: string;
|
|
11423
11942
|
/**
|
|
11424
11943
|
* Country of the payment method
|
|
11425
11944
|
*/
|
|
11426
|
-
country
|
|
11945
|
+
country?: string;
|
|
11427
11946
|
/**
|
|
11428
11947
|
* State of the payment method
|
|
11429
11948
|
*/
|
|
11430
|
-
state
|
|
11949
|
+
state?: string;
|
|
11431
11950
|
/**
|
|
11432
11951
|
* Last payment error associated with the payment method.
|
|
11433
11952
|
*/
|
|
11434
|
-
lastError
|
|
11953
|
+
lastError?: string;
|
|
11435
11954
|
/**
|
|
11436
11955
|
* True when it's the default payment method.
|
|
11437
11956
|
*/
|
|
@@ -11804,9 +12323,9 @@ export declare namespace Models {
|
|
|
11804
12323
|
*/
|
|
11805
12324
|
status: string;
|
|
11806
12325
|
/**
|
|
11807
|
-
* The
|
|
12326
|
+
* The restoration start time. Null until the restoration starts.
|
|
11808
12327
|
*/
|
|
11809
|
-
startedAt
|
|
12328
|
+
startedAt?: string;
|
|
11810
12329
|
/**
|
|
11811
12330
|
* Migration ID.
|
|
11812
12331
|
*/
|
|
@@ -11820,9 +12339,9 @@ export declare namespace Models {
|
|
|
11820
12339
|
*/
|
|
11821
12340
|
resources: string[];
|
|
11822
12341
|
/**
|
|
11823
|
-
*
|
|
12342
|
+
* Restoration options as a key-value object.
|
|
11824
12343
|
*/
|
|
11825
|
-
options:
|
|
12344
|
+
options: object;
|
|
11826
12345
|
};
|
|
11827
12346
|
/**
|
|
11828
12347
|
* Dedicated database restorations list
|
|
@@ -12007,11 +12526,11 @@ export declare namespace Models {
|
|
|
12007
12526
|
/**
|
|
12008
12527
|
* Bandwidth additional resources
|
|
12009
12528
|
*/
|
|
12010
|
-
bandwidth
|
|
12529
|
+
bandwidth?: AdditionalResource;
|
|
12011
12530
|
/**
|
|
12012
12531
|
* Executions additional resources
|
|
12013
12532
|
*/
|
|
12014
|
-
executions
|
|
12533
|
+
executions?: AdditionalResource;
|
|
12015
12534
|
/**
|
|
12016
12535
|
* Member additional resources
|
|
12017
12536
|
*/
|
|
@@ -12019,11 +12538,11 @@ export declare namespace Models {
|
|
|
12019
12538
|
/**
|
|
12020
12539
|
* Realtime additional resources
|
|
12021
12540
|
*/
|
|
12022
|
-
realtime
|
|
12541
|
+
realtime?: AdditionalResource;
|
|
12023
12542
|
/**
|
|
12024
12543
|
* Realtime messages additional resources
|
|
12025
12544
|
*/
|
|
12026
|
-
realtimeMessages
|
|
12545
|
+
realtimeMessages?: AdditionalResource;
|
|
12027
12546
|
/**
|
|
12028
12547
|
* Realtime bandwidth additional resources
|
|
12029
12548
|
*/
|
|
@@ -12031,19 +12550,19 @@ export declare namespace Models {
|
|
|
12031
12550
|
/**
|
|
12032
12551
|
* Storage additional resources
|
|
12033
12552
|
*/
|
|
12034
|
-
storage
|
|
12553
|
+
storage?: AdditionalResource;
|
|
12035
12554
|
/**
|
|
12036
12555
|
* User additional resources
|
|
12037
12556
|
*/
|
|
12038
|
-
users
|
|
12557
|
+
users?: AdditionalResource;
|
|
12039
12558
|
/**
|
|
12040
12559
|
* GBHour additional resources
|
|
12041
12560
|
*/
|
|
12042
|
-
GBHours
|
|
12561
|
+
GBHours?: AdditionalResource;
|
|
12043
12562
|
/**
|
|
12044
12563
|
* Image transformation additional resources
|
|
12045
12564
|
*/
|
|
12046
|
-
imageTransformations
|
|
12565
|
+
imageTransformations?: AdditionalResource;
|
|
12047
12566
|
/**
|
|
12048
12567
|
* Credits additional resources
|
|
12049
12568
|
*/
|
|
@@ -12133,6 +12652,10 @@ export declare namespace Models {
|
|
|
12133
12652
|
* Aggregated stats for total backups storage.
|
|
12134
12653
|
*/
|
|
12135
12654
|
backupsStorageTotal: number;
|
|
12655
|
+
/**
|
|
12656
|
+
* Aggregated stats for total custom user photos storage.
|
|
12657
|
+
*/
|
|
12658
|
+
avatarsStorageTotal: number;
|
|
12136
12659
|
/**
|
|
12137
12660
|
* Aggregated stats for total storage.
|
|
12138
12661
|
*/
|
|
@@ -13374,6 +13897,19 @@ export declare namespace Models {
|
|
|
13374
13897
|
*/
|
|
13375
13898
|
addons: Addon[];
|
|
13376
13899
|
};
|
|
13900
|
+
/**
|
|
13901
|
+
* Analytics properties list
|
|
13902
|
+
*/
|
|
13903
|
+
export type AnalyticsPropertyList = {
|
|
13904
|
+
/**
|
|
13905
|
+
* Total number of properties that matched your query.
|
|
13906
|
+
*/
|
|
13907
|
+
total: number;
|
|
13908
|
+
/**
|
|
13909
|
+
* List of properties.
|
|
13910
|
+
*/
|
|
13911
|
+
properties: AnalyticsProperty[];
|
|
13912
|
+
};
|
|
13377
13913
|
/**
|
|
13378
13914
|
* Aggregation team list
|
|
13379
13915
|
*/
|