@appwrite.io/console 18.3.0-rc.1 → 18.3.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/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
@@ -6782,6 +6834,27 @@ export declare namespace Models {
6782
6834
  */
6783
6835
  custom: boolean;
6784
6836
  };
6837
+ /**
6838
+ * Policy Passkey
6839
+ */
6840
+ export type PolicyPasskey = {
6841
+ /**
6842
+ * Policy ID.
6843
+ */
6844
+ $id: string;
6845
+ /**
6846
+ * Whether the passkey auth method is enabled. Toggle it with the update auth method endpoint.
6847
+ */
6848
+ enabled: boolean;
6849
+ /**
6850
+ * Relying party ID passkeys are bound to. Empty until configured.
6851
+ */
6852
+ rpId: string;
6853
+ /**
6854
+ * Web origins allowed to register and sign in with passkeys.
6855
+ */
6856
+ origins: string[];
6857
+ };
6785
6858
  /**
6786
6859
  * Policy Deny Aliased Email
6787
6860
  */
@@ -7835,6 +7908,73 @@ export declare namespace Models {
7835
7908
  */
7836
7909
  code: string;
7837
7910
  };
7911
+ /**
7912
+ * Passkey
7913
+ */
7914
+ export type Passkey = {
7915
+ /**
7916
+ * Passkey ID.
7917
+ */
7918
+ $id: string;
7919
+ /**
7920
+ * Passkey creation date in ISO 8601 format.
7921
+ */
7922
+ $createdAt: string;
7923
+ /**
7924
+ * Passkey update date in ISO 8601 format.
7925
+ */
7926
+ $updatedAt: string;
7927
+ /**
7928
+ * Passkey name.
7929
+ */
7930
+ name: string;
7931
+ /**
7932
+ * Most recent sign-in with this passkey in ISO 8601 format. Empty until the passkey is used to sign in.
7933
+ */
7934
+ accessedAt: string;
7935
+ /**
7936
+ * Whether the passkey is synced to a cloud account, such as iCloud Keychain or Google Password Manager, rather than bound to one device.
7937
+ */
7938
+ backedUp: boolean;
7939
+ };
7940
+ /**
7941
+ * Passkey Challenge
7942
+ */
7943
+ export type PasskeyChallenge = {
7944
+ /**
7945
+ * Challenge ID. Pass it back with the credential to complete the ceremony.
7946
+ */
7947
+ $id: string;
7948
+ /**
7949
+ * Challenge creation date in ISO 8601 format.
7950
+ */
7951
+ $createdAt: string;
7952
+ /**
7953
+ * ID of the passkey being registered. Empty for sign-in challenges.
7954
+ */
7955
+ passkeyId: string;
7956
+ /**
7957
+ * Challenge expiration date in ISO 8601 format.
7958
+ */
7959
+ expire: string;
7960
+ /**
7961
+ * WebAuthn options in JSON form. Pass them to `PublicKeyCredential.parseCreationOptionsFromJSON()` when registering, or `PublicKeyCredential.parseRequestOptionsFromJSON()` when signing in.
7962
+ */
7963
+ publicKey: object;
7964
+ };
7965
+ /**
7966
+ * Passkeys List
7967
+ */
7968
+ export type PasskeyList = {
7969
+ /**
7970
+ * Total number of passkeys that matched your query.
7971
+ */
7972
+ total: number;
7973
+ /**
7974
+ * List of passkeys.
7975
+ */
7976
+ passkeys: Passkey[];
7977
+ };
7838
7978
  /**
7839
7979
  * MFA Recovery Codes
7840
7980
  */
@@ -8489,6 +8629,274 @@ export declare namespace Models {
8489
8629
  */
8490
8630
  analyzedAt?: string;
8491
8631
  };
8632
+ /**
8633
+ * Video
8634
+ */
8635
+ export type Video = {
8636
+ /**
8637
+ * Video ID.
8638
+ */
8639
+ $id: string;
8640
+ /**
8641
+ * Video creation time in ISO 8601 format.
8642
+ */
8643
+ $createdAt: string;
8644
+ /**
8645
+ * Video update date in ISO 8601 format.
8646
+ */
8647
+ $updatedAt: string;
8648
+ /**
8649
+ * Storage bucket ID holding the source file.
8650
+ */
8651
+ bucketId: string;
8652
+ /**
8653
+ * Source file ID.
8654
+ */
8655
+ fileId: string;
8656
+ /**
8657
+ * Video name.
8658
+ */
8659
+ name: string;
8660
+ /**
8661
+ * Preview image ID, taken from the sprite timeline.
8662
+ */
8663
+ previewId: string;
8664
+ /**
8665
+ * Source file size in bytes.
8666
+ */
8667
+ size: number;
8668
+ /**
8669
+ * Source status: one of `pending`, `downloading`, `ready`, `removed`, `error` or `aborted`.
8670
+ */
8671
+ status: string;
8672
+ /**
8673
+ * Total number of chunks in the source download.
8674
+ */
8675
+ chunksTotal: number;
8676
+ /**
8677
+ * Number of source chunks downloaded so far.
8678
+ */
8679
+ chunksUploaded: number;
8680
+ /**
8681
+ * Container format.
8682
+ */
8683
+ format: string;
8684
+ /**
8685
+ * Video duration in milliseconds.
8686
+ */
8687
+ duration: number;
8688
+ /**
8689
+ * Video width in pixels.
8690
+ */
8691
+ width: number;
8692
+ /**
8693
+ * Video height in pixels.
8694
+ */
8695
+ height: number;
8696
+ /**
8697
+ * Video aspect ratio.
8698
+ */
8699
+ aspectRatio: string;
8700
+ /**
8701
+ * Video codec.
8702
+ */
8703
+ videoCodec: string;
8704
+ /**
8705
+ * Video format.
8706
+ */
8707
+ videoFormat: string;
8708
+ /**
8709
+ * Video format profile.
8710
+ */
8711
+ videoFormatProfile: string;
8712
+ /**
8713
+ * Video bitrate in bits per second.
8714
+ */
8715
+ videoBitRate: number;
8716
+ /**
8717
+ * Video frame rate.
8718
+ */
8719
+ videoFrameRate: string;
8720
+ /**
8721
+ * Video frame rate mode.
8722
+ */
8723
+ videoFrameRateMode: string;
8724
+ /**
8725
+ * Audio codec.
8726
+ */
8727
+ audioCodec: string;
8728
+ /**
8729
+ * Audio format.
8730
+ */
8731
+ audioFormat: string;
8732
+ /**
8733
+ * Audio bitrate in bits per second.
8734
+ */
8735
+ audioBitRate: number;
8736
+ /**
8737
+ * Audio sample rate.
8738
+ */
8739
+ audioSampleRate: string;
8740
+ };
8741
+ /**
8742
+ * Video profile
8743
+ */
8744
+ export type VideoProfile = {
8745
+ /**
8746
+ * Video profile ID.
8747
+ */
8748
+ $id: string;
8749
+ /**
8750
+ * Video profile creation time in ISO 8601 format.
8751
+ */
8752
+ $createdAt: string;
8753
+ /**
8754
+ * Video profile update date in ISO 8601 format.
8755
+ */
8756
+ $updatedAt: string;
8757
+ /**
8758
+ * Video profile name.
8759
+ */
8760
+ name: string;
8761
+ /**
8762
+ * Target video bitrate in kilobits per second.
8763
+ */
8764
+ videoBitRate: number;
8765
+ /**
8766
+ * Target audio bitrate in kilobits per second.
8767
+ */
8768
+ audioBitRate: number;
8769
+ /**
8770
+ * Target video width in pixels.
8771
+ */
8772
+ width: number;
8773
+ /**
8774
+ * Target video height in pixels.
8775
+ */
8776
+ height: number;
8777
+ };
8778
+ /**
8779
+ * Video rendition
8780
+ */
8781
+ export type VideoRendition = {
8782
+ /**
8783
+ * Rendition ID.
8784
+ */
8785
+ $id: string;
8786
+ /**
8787
+ * Rendition creation time in ISO 8601 format.
8788
+ */
8789
+ $createdAt: string;
8790
+ /**
8791
+ * Rendition update date in ISO 8601 format.
8792
+ */
8793
+ $updatedAt: string;
8794
+ /**
8795
+ * Video ID.
8796
+ */
8797
+ videoId: string;
8798
+ /**
8799
+ * Video profile ID this rendition was encoded against.
8800
+ */
8801
+ profileId: string;
8802
+ /**
8803
+ * Rendition name, derived from its dimensions and bitrate.
8804
+ */
8805
+ name: string;
8806
+ /**
8807
+ * Transcoding start time in ISO 8601 format.
8808
+ */
8809
+ startedAt: string;
8810
+ /**
8811
+ * Transcoding end time in ISO 8601 format.
8812
+ */
8813
+ endedAt: string;
8814
+ /**
8815
+ * Rendition width in pixels.
8816
+ */
8817
+ width: number;
8818
+ /**
8819
+ * Rendition height in pixels.
8820
+ */
8821
+ height: number;
8822
+ /**
8823
+ * Video bitrate in kilobits per second.
8824
+ */
8825
+ videoBitRate: number;
8826
+ /**
8827
+ * Audio bitrate in kilobits per second.
8828
+ */
8829
+ audioBitRate: number;
8830
+ /**
8831
+ * Longest segment duration in seconds.
8832
+ */
8833
+ targetDuration: string;
8834
+ /**
8835
+ * Transcoding status: one of `pending`, `started`, `ended`, `uploading`, `ready`, `error` or `aborted`.
8836
+ */
8837
+ status: string;
8838
+ /**
8839
+ * Transcoding progress as a percentage.
8840
+ */
8841
+ progress: string;
8842
+ /**
8843
+ * Streaming output format: `hls`, `dash`, or `cmaf`.
8844
+ */
8845
+ output: string;
8846
+ };
8847
+ /**
8848
+ * Video subtitle
8849
+ */
8850
+ export type VideoSubtitle = {
8851
+ /**
8852
+ * Subtitle ID.
8853
+ */
8854
+ $id: string;
8855
+ /**
8856
+ * Subtitle creation time in ISO 8601 format.
8857
+ */
8858
+ $createdAt: string;
8859
+ /**
8860
+ * Subtitle update date in ISO 8601 format.
8861
+ */
8862
+ $updatedAt: string;
8863
+ /**
8864
+ * Video ID.
8865
+ */
8866
+ videoId: string;
8867
+ /**
8868
+ * Storage bucket ID holding the subtitle file.
8869
+ */
8870
+ bucketId: string;
8871
+ /**
8872
+ * Subtitle file ID.
8873
+ */
8874
+ fileId: string;
8875
+ /**
8876
+ * Subtitle display name.
8877
+ */
8878
+ name: string;
8879
+ /**
8880
+ * Subtitle ISO 639-2 language code.
8881
+ */
8882
+ code: string;
8883
+ /**
8884
+ * Is this the default subtitle track?
8885
+ */
8886
+ default: boolean;
8887
+ /**
8888
+ * 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.
8889
+ */
8890
+ embedded: boolean;
8891
+ /**
8892
+ * Longest segment duration in seconds.
8893
+ */
8894
+ targetDuration: string;
8895
+ /**
8896
+ * Packaging status: one of `pending`, `started`, `ready` or `error`.
8897
+ */
8898
+ status: string;
8899
+ };
8492
8900
  /**
8493
8901
  * ActivityEvent
8494
8902
  */
@@ -9327,7 +9735,7 @@ export declare namespace Models {
9327
9735
  /**
9328
9736
  * Address line 2
9329
9737
  */
9330
- addressLine2: string;
9738
+ addressLine2?: string;
9331
9739
  /**
9332
9740
  * Address country
9333
9741
  */
@@ -9339,11 +9747,11 @@ export declare namespace Models {
9339
9747
  /**
9340
9748
  * state
9341
9749
  */
9342
- state: string;
9750
+ state?: string;
9343
9751
  /**
9344
9752
  * postal code
9345
9753
  */
9346
- postalCode: string;
9754
+ postalCode?: string;
9347
9755
  };
9348
9756
  /**
9349
9757
  * Limits
@@ -9892,7 +10300,7 @@ export declare namespace Models {
9892
10300
  /**
9893
10301
  * Branch port. Null until the backing reports one.
9894
10302
  */
9895
- port: number;
10303
+ port?: number;
9896
10304
  /**
9897
10305
  * Advertised catalog the client connects to. MySQL/MariaDB use default; Postgres uses the routing label.
9898
10306
  */
@@ -10196,11 +10604,11 @@ export declare namespace Models {
10196
10604
  /**
10197
10605
  * Product API that owns this database: tablesdb, documentsdb, vectorsdb, mysql, postgresql, or mongodb.
10198
10606
  */
10199
- api: string;
10607
+ api?: string;
10200
10608
  /**
10201
10609
  * Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
10202
10610
  */
10203
- engine: string;
10611
+ engine?: string;
10204
10612
  /**
10205
10613
  * Database engine version.
10206
10614
  */
@@ -10220,7 +10628,7 @@ export declare namespace Models {
10220
10628
  /**
10221
10629
  * Database port for connections. Derived from the engine when the backing has not reported one yet.
10222
10630
  */
10223
- connectionPort: number;
10631
+ connectionPort?: number;
10224
10632
  /**
10225
10633
  * Database username for connections.
10226
10634
  */
@@ -10232,7 +10640,7 @@ export declare namespace Models {
10232
10640
  /**
10233
10641
  * Committed generation of the primary connection credentials. Null until the rotation contract has been initialized.
10234
10642
  */
10235
- credentialGeneration: number;
10643
+ credentialGeneration?: number;
10236
10644
  /**
10237
10645
  * Full database connection string (URI format).
10238
10646
  */
@@ -10443,7 +10851,7 @@ export declare namespace Models {
10443
10851
  /**
10444
10852
  * Source database ID when restoring a backup into another database.
10445
10853
  */
10446
- sourceDatabaseId: string;
10854
+ sourceDatabaseId?: string;
10447
10855
  /**
10448
10856
  * Project ID.
10449
10857
  */
@@ -10451,7 +10859,7 @@ export declare namespace Models {
10451
10859
  /**
10452
10860
  * Backup ID used for restoration (null for PITR).
10453
10861
  */
10454
- backupId: string;
10862
+ backupId?: string;
10455
10863
  /**
10456
10864
  * Restoration type. Possible values: backup (restore from a specific backup snapshot), pitr (point-in-time recovery to a specific timestamp).
10457
10865
  */
@@ -10463,15 +10871,15 @@ export declare namespace Models {
10463
10871
  /**
10464
10872
  * Target time for PITR restoration in ISO 8601 format.
10465
10873
  */
10466
- targetTime: string;
10874
+ targetTime?: string;
10467
10875
  /**
10468
10876
  * Restoration start time in ISO 8601 format.
10469
10877
  */
10470
- startedAt: string;
10878
+ startedAt?: string;
10471
10879
  /**
10472
10880
  * Restoration completion time in ISO 8601 format.
10473
10881
  */
10474
- completedAt: string;
10882
+ completedAt?: string;
10475
10883
  /**
10476
10884
  * Error message if restoration failed.
10477
10885
  */
@@ -10837,7 +11245,7 @@ export declare namespace Models {
10837
11245
  /**
10838
11246
  * Discount amount
10839
11247
  */
10840
- discount: number;
11248
+ discount?: number;
10841
11249
  /**
10842
11250
  * Credits amount
10843
11251
  */
@@ -10921,7 +11329,7 @@ export declare namespace Models {
10921
11329
  /**
10922
11330
  * Discount amount
10923
11331
  */
10924
- discount: number;
11332
+ discount?: number;
10925
11333
  /**
10926
11334
  * Credits amount
10927
11335
  */
@@ -11197,7 +11605,7 @@ export declare namespace Models {
11197
11605
  /**
11198
11606
  * Client secret for processing failed payments in front-end
11199
11607
  */
11200
- clientSecret: string;
11608
+ clientSecret?: string;
11201
11609
  /**
11202
11610
  * Invoice status
11203
11611
  */
@@ -11209,7 +11617,7 @@ export declare namespace Models {
11209
11617
  /**
11210
11618
  * Last payment error associated with the invoice
11211
11619
  */
11212
- lastError: string;
11620
+ lastError?: string;
11213
11621
  /**
11214
11622
  * Invoice due date.
11215
11623
  */
@@ -11340,15 +11748,15 @@ export declare namespace Models {
11340
11748
  /**
11341
11749
  * Billing cycle start date.
11342
11750
  */
11343
- billingStartDate: string;
11751
+ billingStartDate?: string;
11344
11752
  /**
11345
11753
  * Current invoice cycle start date.
11346
11754
  */
11347
- billingCurrentInvoiceDate: string;
11755
+ billingCurrentInvoiceDate?: string;
11348
11756
  /**
11349
11757
  * Next invoice cycle start date.
11350
11758
  */
11351
- billingNextInvoiceDate: string;
11759
+ billingNextInvoiceDate?: string;
11352
11760
  /**
11353
11761
  * Start date of trial.
11354
11762
  */
@@ -11356,19 +11764,19 @@ export declare namespace Models {
11356
11764
  /**
11357
11765
  * Number of trial days.
11358
11766
  */
11359
- billingTrialDays: number;
11767
+ billingTrialDays?: number;
11360
11768
  /**
11361
11769
  * Current active aggregation id.
11362
11770
  */
11363
- billingAggregationId: string;
11771
+ billingAggregationId?: string;
11364
11772
  /**
11365
11773
  * Current active aggregation id.
11366
11774
  */
11367
- billingInvoiceId: string;
11775
+ billingInvoiceId?: string;
11368
11776
  /**
11369
11777
  * Default payment method.
11370
11778
  */
11371
- paymentMethodId: string;
11779
+ paymentMethodId?: string;
11372
11780
  /**
11373
11781
  * Default payment method.
11374
11782
  */
@@ -11498,39 +11906,39 @@ export declare namespace Models {
11498
11906
  /**
11499
11907
  * Expiry month of the payment method.
11500
11908
  */
11501
- expiryMonth: number;
11909
+ expiryMonth?: number;
11502
11910
  /**
11503
11911
  * Expiry year of the payment method.
11504
11912
  */
11505
- expiryYear: number;
11913
+ expiryYear?: number;
11506
11914
  /**
11507
11915
  * Last 4 digit of the payment method
11508
11916
  */
11509
- last4: string;
11917
+ last4?: string;
11510
11918
  /**
11511
11919
  * Payment method brand
11512
11920
  */
11513
- brand: string;
11921
+ brand?: string;
11514
11922
  /**
11515
11923
  * Name of the owner
11516
11924
  */
11517
- name: string;
11925
+ name?: string;
11518
11926
  /**
11519
11927
  * Mandate ID of the payment method
11520
11928
  */
11521
- mandateId: string;
11929
+ mandateId?: string;
11522
11930
  /**
11523
11931
  * Country of the payment method
11524
11932
  */
11525
- country: string;
11933
+ country?: string;
11526
11934
  /**
11527
11935
  * State of the payment method
11528
11936
  */
11529
- state: string;
11937
+ state?: string;
11530
11938
  /**
11531
11939
  * Last payment error associated with the payment method.
11532
11940
  */
11533
- lastError: string;
11941
+ lastError?: string;
11534
11942
  /**
11535
11943
  * True when it's the default payment method.
11536
11944
  */
@@ -12106,11 +12514,11 @@ export declare namespace Models {
12106
12514
  /**
12107
12515
  * Bandwidth additional resources
12108
12516
  */
12109
- bandwidth: AdditionalResource;
12517
+ bandwidth?: AdditionalResource;
12110
12518
  /**
12111
12519
  * Executions additional resources
12112
12520
  */
12113
- executions: AdditionalResource;
12521
+ executions?: AdditionalResource;
12114
12522
  /**
12115
12523
  * Member additional resources
12116
12524
  */
@@ -12118,11 +12526,11 @@ export declare namespace Models {
12118
12526
  /**
12119
12527
  * Realtime additional resources
12120
12528
  */
12121
- realtime: AdditionalResource;
12529
+ realtime?: AdditionalResource;
12122
12530
  /**
12123
12531
  * Realtime messages additional resources
12124
12532
  */
12125
- realtimeMessages: AdditionalResource;
12533
+ realtimeMessages?: AdditionalResource;
12126
12534
  /**
12127
12535
  * Realtime bandwidth additional resources
12128
12536
  */
@@ -12130,19 +12538,19 @@ export declare namespace Models {
12130
12538
  /**
12131
12539
  * Storage additional resources
12132
12540
  */
12133
- storage: AdditionalResource;
12541
+ storage?: AdditionalResource;
12134
12542
  /**
12135
12543
  * User additional resources
12136
12544
  */
12137
- users: AdditionalResource;
12545
+ users?: AdditionalResource;
12138
12546
  /**
12139
12547
  * GBHour additional resources
12140
12548
  */
12141
- GBHours: AdditionalResource;
12549
+ GBHours?: AdditionalResource;
12142
12550
  /**
12143
12551
  * Image transformation additional resources
12144
12552
  */
12145
- imageTransformations: AdditionalResource;
12553
+ imageTransformations?: AdditionalResource;
12146
12554
  /**
12147
12555
  * Credits additional resources
12148
12556
  */