@gravity-rail/sdk 1.0.0 → 3.0.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 +9 -9
- package/dist/{chat-interaction-BWvViNx-.d.cts → chat-interaction-BPqj_KMO.d.cts} +3037 -1154
- package/dist/{chat-interaction-CRGcStD0.d.ts → chat-interaction-CDlei6KK.d.ts} +3037 -1154
- package/dist/{chunk-VBG6XUBN.js → chunk-LWRMGN4Z.js} +901 -311
- package/dist/chunk-LWRMGN4Z.js.map +1 -0
- package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
- package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -4
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +947 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +49 -25
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +903 -309
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +99 -6
- package/dist/internal.d.ts +99 -6
- package/dist/internal.js +8 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DcjopLJf.d.ts → member-import-BbWJzHSV.d.ts} +1 -1
- package/dist/{member-import-fQz-gVmQ.d.cts → member-import-DxBggQLc.d.cts} +1 -1
- package/dist/{path-BKAZ7CTT.d.ts → path-5DteJvEx.d.ts} +35 -3
- package/dist/{path-C5Cn4Kl7.d.cts → path-bqfiH1XI.d.cts} +35 -3
- package/dist/schemas.cjs +57 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +77 -9
- package/dist/schemas.d.ts +77 -9
- package/dist/schemas.js +53 -6
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-DVm54e2a.d.cts → tasks-fAwwBZIX.d.cts} +53 -11
- package/dist/{tasks-DVm54e2a.d.ts → tasks-fAwwBZIX.d.ts} +53 -11
- package/package.json +10 -4
- package/dist/chunk-VBG6XUBN.js.map +0 -1
package/README.md
CHANGED
|
@@ -430,8 +430,8 @@ empty and Member identifiers are null) when the caller cannot read stored
|
|
|
430
430
|
values. Load values with a permitted record read after saving. Customer sign-in
|
|
431
431
|
policies remain separate from record scopes.
|
|
432
432
|
|
|
433
|
-
Managed themes use `workspace.createPage` with `title
|
|
434
|
-
`contentMarkdown` for pages. Source Sites define application routes in their
|
|
433
|
+
Managed themes use `workspace.createPage` with `title` and
|
|
434
|
+
`contentMarkdown` for pages; `slug` is optional and derived from the title when omitted. Source Sites define application routes in their
|
|
435
435
|
React code; creating a managed Page does not register a React route. For a
|
|
436
436
|
verified custom domain, use
|
|
437
437
|
`customDomain` in `createSite` or `updateSite`, following the
|
|
@@ -446,6 +446,10 @@ Workspace and organization directories return `{ items, page, pageSize, total, t
|
|
|
446
446
|
most 100), and `search` to request a page. This applies to `getWorkspaces`,
|
|
447
447
|
`getDeviceAdmissibleWorkspaces`, `getPublicWorkspaces`, `getMyOrganizations`, and
|
|
448
448
|
`getOrganizationWorkspaceSummaries`.
|
|
449
|
+
`getOrganizationWorkspaceSummaries` also accepts `label`, an organization label
|
|
450
|
+
slug. It combines with search before pagination and requires `org:read` or
|
|
451
|
+
`org:webhooks`. Unknown slugs return an empty page. The filter preserves
|
|
452
|
+
organization and workspace membership limits.
|
|
449
453
|
Organization member details no longer embed workspace lists; request organization
|
|
450
454
|
workspace summary pages instead.
|
|
451
455
|
`getMyOrganizations` also accepts `organizationSlug` for exact host resolution
|
|
@@ -483,12 +487,8 @@ const config = await client.exportWorkspace(workspaceId);
|
|
|
483
487
|
const preview = await client.previewWorkspaceImport(targetId, config);
|
|
484
488
|
await client.importWorkspace(targetId, config);
|
|
485
489
|
|
|
486
|
-
// White-label: provision client
|
|
487
|
-
|
|
488
|
-
name: 'Acme Corp',
|
|
489
|
-
product_id: productId,
|
|
490
|
-
});
|
|
491
|
-
await client.provisionClientWorkspace(workspaceId, clientWs.id);
|
|
490
|
+
// White-label: provision an existing client workspace
|
|
491
|
+
await client.provisionClientWorkspace(workspaceId, existingClientWorkspaceId);
|
|
492
492
|
```
|
|
493
493
|
|
|
494
494
|
## Export Workflow revisions
|
|
@@ -566,7 +566,7 @@ import {
|
|
|
566
566
|
resolveMemberId, // { memberId | phone | externalId } → member id
|
|
567
567
|
findOrCreateMemberLabels, // idempotent label lookup/create → ids
|
|
568
568
|
upsertDataRecordForMember,// idempotent member-scoped record write
|
|
569
|
-
enrollMemberInJourney, // resolve member → tag → enroll (
|
|
569
|
+
enrollMemberInJourney, // resolve member → tag → enroll (already enrolled is a no-op)
|
|
570
570
|
// outbound calling
|
|
571
571
|
findMemberByPhone,
|
|
572
572
|
resolveOutboundPhoneNumberId,
|