@gravity-rail/sdk 0.49.0 → 0.50.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.
package/README.md CHANGED
@@ -365,7 +365,9 @@ const operators = await client.getLiveOperators(workspaceId);
365
365
 
366
366
  ### Sites & Portals
367
367
 
368
- Site record write methods may return a successful value-free receipt: `fieldValues` is empty and `memberId` / `memberName` / `externalId` are null unless Reading Records, level-2 sign-in verification, and the row read policy all allow values. This includes partial updates, resubmissions and upserts. The write still succeeds; use a permitted record read to load stored values.
368
+ Site settings accept `allowedScopes: ['records:read', 'records:write', 'records:admin']` for Manage Records. This opt-in exposes only record scopes the signed-in Member’s current role already allows, within the Site workspace. It permits existing record administration, including other Members’ records, admin-only fields, and deletion. The default is `[]`; read/write opt-ins remain independent. Unrelated administrative scopes stay suppressed.
369
+
370
+ Site record write methods may return a successful value-free receipt: `fieldValues` is empty and `memberId` / `memberName` / `externalId` are null unless Reading Records and the row read policy both allow values. This includes partial updates, resubmissions and upserts. The write still succeeds; use a permitted record read to load stored values.
369
371
 
370
372
  ```typescript
371
373
  // Build customer-facing portals with AI chat built in
@@ -1570,6 +1570,7 @@ type SiteResponseAllowedScopesItem = typeof SiteResponseAllowedScopesItem[keyof
1570
1570
  declare const SiteResponseAllowedScopesItem: {
1571
1571
  readonly 'records:read': "records:read";
1572
1572
  readonly 'records:write': "records:write";
1573
+ readonly 'records:admin': "records:admin";
1573
1574
  };
1574
1575
  type SiteResponseResolvedThemeSettings = {
1575
1576
  [key: string]: unknown;
@@ -1780,6 +1781,7 @@ type UnauthorizedSiteResponseAllowedScopesItem = typeof UnauthorizedSiteResponse
1780
1781
  declare const UnauthorizedSiteResponseAllowedScopesItem: {
1781
1782
  readonly 'records:read': "records:read";
1782
1783
  readonly 'records:write': "records:write";
1784
+ readonly 'records:admin': "records:admin";
1783
1785
  };
1784
1786
  type UnauthorizedSiteResponseResolvedThemeSettings = {
1785
1787
  [key: string]: unknown;
@@ -15587,7 +15589,7 @@ interface SiteFormData {
15587
15589
  isReseller?: boolean;
15588
15590
  isPublic?: boolean;
15589
15591
  allowAccountLogin?: boolean;
15590
- allowedScopes?: ('records:read' | 'records:write')[];
15592
+ allowedScopes?: ('records:read' | 'records:write' | 'records:admin')[];
15591
15593
  authenticationMethods?: 'name_dob'[];
15592
15594
  defaultWorkflowId?: number | null;
15593
15595
  homePageId?: number | null;
@@ -1570,6 +1570,7 @@ type SiteResponseAllowedScopesItem = typeof SiteResponseAllowedScopesItem[keyof
1570
1570
  declare const SiteResponseAllowedScopesItem: {
1571
1571
  readonly 'records:read': "records:read";
1572
1572
  readonly 'records:write': "records:write";
1573
+ readonly 'records:admin': "records:admin";
1573
1574
  };
1574
1575
  type SiteResponseResolvedThemeSettings = {
1575
1576
  [key: string]: unknown;
@@ -1780,6 +1781,7 @@ type UnauthorizedSiteResponseAllowedScopesItem = typeof UnauthorizedSiteResponse
1780
1781
  declare const UnauthorizedSiteResponseAllowedScopesItem: {
1781
1782
  readonly 'records:read': "records:read";
1782
1783
  readonly 'records:write': "records:write";
1784
+ readonly 'records:admin': "records:admin";
1783
1785
  };
1784
1786
  type UnauthorizedSiteResponseResolvedThemeSettings = {
1785
1787
  [key: string]: unknown;
@@ -15587,7 +15589,7 @@ interface SiteFormData {
15587
15589
  isReseller?: boolean;
15588
15590
  isPublic?: boolean;
15589
15591
  allowAccountLogin?: boolean;
15590
- allowedScopes?: ('records:read' | 'records:write')[];
15592
+ allowedScopes?: ('records:read' | 'records:write' | 'records:admin')[];
15591
15593
  authenticationMethods?: 'name_dob'[];
15592
15594
  defaultWorkflowId?: number | null;
15593
15595
  homePageId?: number | null;
@@ -17123,4 +17123,4 @@ export {
17123
17123
  pathDraftFromStorage,
17124
17124
  pathDraftToStorage
17125
17125
  };
17126
- //# sourceMappingURL=chunk-XQTPXOBU.js.map
17126
+ //# sourceMappingURL=chunk-QRZVXPR4.js.map