Skip to content

feat: Console SDK update for version 12.2.0#90

Open
ArnabChatterjee20k wants to merge 6 commits intomainfrom
dev
Open

feat: Console SDK update for version 12.2.0#90
ArnabChatterjee20k wants to merge 6 commits intomainfrom
dev

Conversation

@ArnabChatterjee20k
Copy link
Copy Markdown
Member

@ArnabChatterjee20k ArnabChatterjee20k commented May 7, 2026

This PR contains updates to the Console SDK for version 12.2.0.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 7, 2026

Greptile Summary

This PR updates the Console SDK to version 12.2.0, targeting Appwrite API v1.9.4. It adds bigint attribute/column create and update APIs for both Databases and TablesDB, introduces a new OnDuplicate enum with support across migration methods, renames enums (MethodIdAuthMethod, PolicyIdProjectPolicy), renames updateRuleVerification to updateRuleStatus, and expands several service method signatures with new optional parameters.

  • New bigint APIs: Databases.createBigIntAttribute, Databases.updateBigIntAttribute, TablesDB.createBigIntColumn, and TablesDB.updateBigIntColumn added with full overload support; corresponding AttributeBigint and ColumnBigint models added.
  • Enum renames and additions: MethodIdAuthMethod, PolicyIdProjectPolicy, new OnDuplicate enum; ProxyRuleStatus.Created removed and GithubImagine/GoogleImagine added to OAuthProvider.
  • Documentation examples for the four bigint methods use default as the property name instead of the SDK's xdefault, so the examples will produce TypeScript errors and silently omit the default value for anyone copying the snippet.

Confidence Score: 4/5

The core SDK changes are correct but the four new bigint example docs actively mislead developers with the wrong property name.

The underlying service implementations and models are correct. However, all four new bigint example docs use default where the method signature requires xdefault, so any developer copying the examples will get a TypeScript error and silently lose the default value.

docs/examples/databases/create-big-int-attribute.md, docs/examples/databases/update-big-int-attribute.md, docs/examples/tablesdb/create-big-int-column.md, and docs/examples/tablesdb/update-big-int-column.md all need default replaced with xdefault.

Important Files Changed

Filename Overview
docs/examples/databases/create-big-int-attribute.md Example uses default as the property name but the API expects xdefault, causing the default value to be silently ignored for users copying the snippet.
src/services/databases.ts Added createBigIntAttribute and updateBigIntAttribute. The xdefault parameter has an optional type in the overload signatures but is enforced as required at runtime in updateBigIntAttribute.
src/services/tables-db.ts Added createBigIntColumn and updateBigIntColumn with the same xdefault optional-vs-required mismatch as databases.ts.
src/services/project.ts Added new methods (updateAuthMethod, createEphemeralKey, getOAuth2Provider, getPolicy, listOAuth2Providers, updateOAuth2Oidc). getOAuth2Provider still has an unsubstituted :provider path placeholder.
src/client.ts Bumped x-sdk-version to 12.2.0 and X-Appwrite-Response-Format to 1.9.4; no issues found.
src/models.ts Added AttributeBigint and ColumnBigint model types; updated OAuth2Oidc fields from tokenUrl/userInfoUrl to tokenURL/userInfoURL; no issues found.
src/services/migrations.ts Added onDuplicate parameter to createAppwriteMigration, createCSVImport, and createJSONImport; no issues found.
src/services/proxy.ts Removed search parameter from listRules, renamed updateRuleVerification to updateRuleStatus; no new issues found.
src/enums/on-duplicate.ts New OnDuplicate enum with Fail, Skip, and Overwrite values; looks correct.

Reviews (5): Last reviewed commit: "chore: refresh sdk for latest spec (sani..." | Re-trigger Greptile

Comment thread src/services/project.ts
Comment thread src/services/databases.ts
Comment thread src/services/tables-db.ts
Comment thread src/services/tables-db.ts
required: false,
min: null, // optional
max: null, // optional
default: null, // optional
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Wrong property name for default value in example

The example uses default: null but the TypeScript method signature expects the property to be named xdefault. Callers who copy this snippet verbatim will get a TypeScript type error (since default is not in the params interface) and the default value will be silently dropped from the request. The same mismatch exists in docs/examples/databases/update-big-int-attribute.md, docs/examples/tablesdb/create-big-int-column.md, and docs/examples/tablesdb/update-big-int-column.md.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also present in the main repo as well https://github.com/appwrite/sdk-for-console/blob/main/docs/examples/tablesdb/create-integer-column.md
default and not xdefault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant