appwrite 20.0.0 → 20.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c3f7c9d3b58c24312f6fb43bee0247b9648e150d09f0ddeec7c36cc0d64f85
4
- data.tar.gz: b6dc1549427f5bf36fbbfb78f8f30aed7a832231dc1a1302911cdd790ad4db5b
3
+ metadata.gz: 9e94fc52d4a381d2c53839f6502bb52a7a54c19a717594fb0102efdc147f99f7
4
+ data.tar.gz: 4c731fbee7c5241f2bb7e7dbb56beb2d7ff3133f47ad223d75c9f515fed265f8
5
5
  SHA512:
6
- metadata.gz: bc380605bc63bd67c73da7cb2e5956a26b3bd0cffbb047f5cc892402bfbdceecda419f67f33c16990dae9ac18f1b18e0cf0a268f50840ece53a9da1af1a4c06f
7
- data.tar.gz: 7adb893e1c19536907b237655b5f99d3ba02e0d8deae33949e1466968a0251dd290d063651e7ebc84e2cba60871d3a0c4781caf4701d55c0a6f3b297dd10271d
6
+ metadata.gz: 15719a8946212dfd735f932c02d09c7f6bafd29acad1e8815f4e83e4b923a1d5006947b5deb69872bfe22daa03a4bfe4bafc433b5f6c4d19cead5b91561a4c9c
7
+ data.tar.gz: 8b5bbd08f1835f4335fe634a7c9219d35359d51d8fe6417936c9d1b0569935b0e95527322afda8be8e01a6e56e8f29aeb2b5a6922afdb110b2e6d7eda05515ae
@@ -15,7 +15,7 @@ module Appwrite
15
15
  'x-sdk-name'=> 'Ruby',
16
16
  'x-sdk-platform'=> 'server',
17
17
  'x-sdk-language'=> 'ruby',
18
- 'x-sdk-version'=> '20.0.0',
18
+ 'x-sdk-version'=> '20.1.0',
19
19
  'X-Appwrite-Response-Format' => '1.8.0'
20
20
  }
21
21
  @endpoint = 'https://cloud.appwrite.io/v1'
@@ -405,9 +405,11 @@ module Appwrite
405
405
  # @param [Array] permissions An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
406
406
  # @param [] document_security Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).
407
407
  # @param [] enabled Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
408
+ # @param [Array] attributes Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
409
+ # @param [Array] indexes Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
408
410
  #
409
411
  # @return [Collection]
410
- def create_collection(database_id:, collection_id:, name:, permissions: nil, document_security: nil, enabled: nil)
412
+ def create_collection(database_id:, collection_id:, name:, permissions: nil, document_security: nil, enabled: nil, attributes: nil, indexes: nil)
411
413
  api_path = '/databases/{databaseId}/collections'
412
414
  .gsub('{databaseId}', database_id)
413
415
 
@@ -429,6 +431,8 @@ module Appwrite
429
431
  permissions: permissions,
430
432
  documentSecurity: document_security,
431
433
  enabled: enabled,
434
+ attributes: attributes,
435
+ indexes: indexes,
432
436
  }
433
437
 
434
438
  api_headers = {
@@ -384,9 +384,11 @@ module Appwrite
384
384
  # @param [Array] permissions An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
385
385
  # @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
386
386
  # @param [] enabled Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
387
+ # @param [Array] columns Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
388
+ # @param [Array] indexes Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
387
389
  #
388
390
  # @return [Table]
389
- def create_table(database_id:, table_id:, name:, permissions: nil, row_security: nil, enabled: nil)
391
+ def create_table(database_id:, table_id:, name:, permissions: nil, row_security: nil, enabled: nil, columns: nil, indexes: nil)
390
392
  api_path = '/tablesdb/{databaseId}/tables'
391
393
  .gsub('{databaseId}', database_id)
392
394
 
@@ -408,6 +410,8 @@ module Appwrite
408
410
  permissions: permissions,
409
411
  rowSecurity: row_security,
410
412
  enabled: enabled,
413
+ columns: columns,
414
+ indexes: indexes,
411
415
  }
412
416
 
413
417
  api_headers = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.0.0
4
+ version: 20.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appwrite Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-03 00:00:00.000000000 Z
11
+ date: 2025-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types