@constructive-io/sdk 0.25.0 → 0.25.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 +4 -1
- package/admin/orm/index.d.ts +10 -46
- package/admin/orm/index.js +10 -46
- package/admin/orm/input-types.d.ts +953 -3908
- package/admin/orm/input-types.js +1 -13
- package/admin/orm/models/index.d.ts +5 -23
- package/admin/orm/models/index.js +11 -47
- package/agent/orm/index.d.ts +57 -0
- package/agent/orm/index.js +81 -0
- package/agent/orm/input-types.d.ts +2753 -0
- package/agent/orm/input-types.js +24 -0
- package/agent/orm/models/agent.d.ts +54 -0
- package/{public/orm/models/email.js → agent/orm/models/agent.js} +27 -27
- package/agent/orm/models/agentMessage.d.ts +54 -0
- package/{public/orm/models/auditLogAuth.js → agent/orm/models/agentMessage.js} +27 -27
- package/agent/orm/models/agentPersona.d.ts +54 -0
- package/agent/orm/models/agentPersona.js +104 -0
- package/agent/orm/models/agentPlan.d.ts +54 -0
- package/{public/orm/models/appInvite.js → agent/orm/models/agentPlan.js} +27 -27
- package/agent/orm/models/agentPrompt.d.ts +54 -0
- package/{public/orm/models/appLimitCap.js → agent/orm/models/agentPrompt.js} +27 -27
- package/agent/orm/models/agentResource.d.ts +54 -0
- package/{public/orm/models/appLimitEvent.js → agent/orm/models/agentResource.js} +27 -27
- package/agent/orm/models/agentResourceChunk.d.ts +54 -0
- package/{public/orm/models/appLimitCreditCode.js → agent/orm/models/agentResourceChunk.js} +27 -27
- package/agent/orm/models/agentTask.d.ts +54 -0
- package/agent/orm/models/agentTask.js +104 -0
- package/agent/orm/models/agentThread.d.ts +54 -0
- package/agent/orm/models/agentThread.js +104 -0
- package/agent/orm/models/index.d.ts +14 -0
- package/agent/orm/models/index.js +26 -0
- package/agent/orm/mutation/index.d.ts +26 -0
- package/agent/orm/mutation/index.js +21 -0
- package/api/index.js +21 -0
- package/api/orm/client.js +152 -0
- package/api/orm/index.d.ts +177 -0
- package/api/orm/index.js +157 -0
- package/api/orm/input-types.d.ts +11882 -0
- package/api/orm/input-types.js +91 -0
- package/api/orm/models/index.d.ts +50 -0
- package/api/orm/models/index.js +98 -0
- package/api/orm/mutation/index.d.ts +109 -0
- package/api/orm/mutation/index.js +117 -0
- package/api/orm/query/index.d.ts +18 -0
- package/api/orm/query/index.js +25 -0
- package/api/orm/query-builder.js +756 -0
- package/api/orm/realtime.js +104 -0
- package/api/orm/select-types.js +2 -0
- package/api/orm/types.js +23 -0
- package/esm/admin/orm/index.d.ts +10 -46
- package/esm/admin/orm/index.js +10 -46
- package/esm/admin/orm/input-types.d.ts +953 -3908
- package/esm/admin/orm/input-types.js +1 -13
- package/esm/admin/orm/models/index.d.ts +5 -23
- package/esm/admin/orm/models/index.js +5 -23
- package/esm/agent/index.js +5 -0
- package/esm/agent/orm/client.d.ts +97 -0
- package/esm/agent/orm/index.d.ts +57 -0
- package/esm/agent/orm/index.js +59 -0
- package/esm/agent/orm/input-types.d.ts +2753 -0
- package/esm/agent/orm/input-types.js +21 -0
- package/esm/agent/orm/models/agent.d.ts +54 -0
- package/esm/{public/orm/models/appGrant.js → agent/orm/models/agent.js} +25 -25
- package/esm/agent/orm/models/agentMessage.d.ts +54 -0
- package/esm/{public/orm/models/auditLogAuth.js → agent/orm/models/agentMessage.js} +25 -25
- package/esm/agent/orm/models/agentPersona.d.ts +54 -0
- package/esm/agent/orm/models/agentPersona.js +100 -0
- package/esm/agent/orm/models/agentPlan.d.ts +54 -0
- package/esm/{public/orm/models/appInvite.js → agent/orm/models/agentPlan.js} +25 -25
- package/esm/agent/orm/models/agentPrompt.d.ts +54 -0
- package/esm/{public/orm/models/appLimitCap.js → agent/orm/models/agentPrompt.js} +25 -25
- package/esm/agent/orm/models/agentResource.d.ts +54 -0
- package/esm/{public/orm/models/appLimitEvent.js → agent/orm/models/agentResource.js} +25 -25
- package/esm/agent/orm/models/agentResourceChunk.d.ts +54 -0
- package/esm/{public/orm/models/appLimitCreditCode.js → agent/orm/models/agentResourceChunk.js} +25 -25
- package/esm/agent/orm/models/agentTask.d.ts +54 -0
- package/esm/agent/orm/models/agentTask.js +100 -0
- package/esm/agent/orm/models/agentThread.d.ts +54 -0
- package/esm/agent/orm/models/agentThread.js +100 -0
- package/esm/agent/orm/models/index.d.ts +14 -0
- package/esm/agent/orm/models/index.js +14 -0
- package/esm/agent/orm/mutation/index.d.ts +26 -0
- package/esm/agent/orm/mutation/index.js +18 -0
- package/esm/agent/orm/query-builder.d.ts +110 -0
- package/esm/agent/orm/realtime.d.ts +142 -0
- package/esm/agent/orm/select-types.d.ts +125 -0
- package/esm/agent/orm/types.d.ts +6 -0
- package/esm/api/index.d.ts +5 -0
- package/esm/api/index.js +5 -0
- package/esm/api/orm/client.d.ts +97 -0
- package/esm/api/orm/client.js +145 -0
- package/esm/api/orm/index.d.ts +177 -0
- package/esm/api/orm/index.js +134 -0
- package/esm/api/orm/input-types.d.ts +11882 -0
- package/esm/api/orm/input-types.js +88 -0
- package/esm/api/orm/models/index.d.ts +50 -0
- package/esm/api/orm/models/index.js +50 -0
- package/esm/api/orm/mutation/index.d.ts +109 -0
- package/esm/api/orm/mutation/index.js +114 -0
- package/esm/api/orm/query/index.d.ts +18 -0
- package/esm/api/orm/query/index.js +22 -0
- package/esm/api/orm/query-builder.d.ts +110 -0
- package/esm/api/orm/query-builder.js +704 -0
- package/esm/api/orm/realtime.d.ts +142 -0
- package/esm/api/orm/realtime.js +100 -0
- package/esm/api/orm/select-types.d.ts +125 -0
- package/esm/api/orm/select-types.js +1 -0
- package/esm/api/orm/types.d.ts +6 -0
- package/esm/api/orm/types.js +7 -0
- package/esm/index.d.ts +4 -1
- package/esm/index.js +4 -1
- package/esm/modules/index.d.ts +5 -0
- package/esm/modules/index.js +5 -0
- package/esm/modules/orm/client.d.ts +97 -0
- package/esm/modules/orm/client.js +145 -0
- package/esm/modules/orm/index.d.ts +209 -0
- package/esm/modules/orm/index.js +156 -0
- package/esm/modules/orm/input-types.d.ts +11821 -0
- package/esm/modules/orm/input-types.js +13 -0
- package/esm/modules/orm/models/configSecretsModule.d.ts +54 -0
- package/esm/{public/orm/models/appLimitCapsDefault.js → modules/orm/models/configSecretsModule.js} +25 -25
- package/esm/modules/orm/models/i18NModule.d.ts +54 -0
- package/esm/modules/orm/models/i18NModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +61 -0
- package/esm/modules/orm/models/index.js +61 -0
- package/esm/modules/orm/models/userCredentialsModule.d.ts +54 -0
- package/esm/modules/orm/models/userCredentialsModule.js +100 -0
- package/esm/modules/orm/models/userSettingsModule.d.ts +54 -0
- package/esm/{public/orm/models/user.js → modules/orm/models/userSettingsModule.js} +25 -25
- package/esm/modules/orm/mutation/index.d.ts +134 -0
- package/esm/modules/orm/mutation/index.js +126 -0
- package/esm/modules/orm/query/index.d.ts +39 -0
- package/esm/modules/orm/query/index.js +54 -0
- package/esm/modules/orm/query-builder.d.ts +110 -0
- package/esm/modules/orm/query-builder.js +704 -0
- package/esm/modules/orm/realtime.d.ts +142 -0
- package/esm/modules/orm/realtime.js +100 -0
- package/esm/modules/orm/select-types.d.ts +125 -0
- package/esm/modules/orm/select-types.js +1 -0
- package/esm/modules/orm/types.d.ts +6 -0
- package/esm/modules/orm/types.js +7 -0
- package/esm/objects/orm/index.d.ts +2 -50
- package/esm/objects/orm/index.js +2 -5
- package/esm/objects/orm/input-types.d.ts +153 -260
- package/esm/objects/orm/models/index.d.ts +1 -1
- package/esm/objects/orm/models/index.js +1 -1
- package/esm/objects/orm/mutation/index.d.ts +1 -41
- package/esm/objects/orm/mutation/index.js +0 -60
- package/esm/usage/index.d.ts +5 -0
- package/esm/usage/index.js +5 -0
- package/esm/usage/orm/client.d.ts +97 -0
- package/esm/usage/orm/client.js +145 -0
- package/esm/usage/orm/index.d.ts +95 -0
- package/esm/usage/orm/index.js +77 -0
- package/esm/usage/orm/input-types.d.ts +3313 -0
- package/esm/usage/orm/input-types.js +14 -0
- package/esm/usage/orm/models/index.d.ts +23 -0
- package/esm/usage/orm/models/index.js +23 -0
- package/esm/usage/orm/mutation/index.d.ts +58 -0
- package/esm/usage/orm/mutation/index.js +66 -0
- package/esm/usage/orm/query-builder.d.ts +110 -0
- package/esm/usage/orm/query-builder.js +704 -0
- package/esm/usage/orm/realtime.d.ts +142 -0
- package/esm/usage/orm/realtime.js +100 -0
- package/esm/usage/orm/select-types.d.ts +125 -0
- package/esm/usage/orm/select-types.js +1 -0
- package/esm/usage/orm/types.d.ts +6 -0
- package/esm/usage/orm/types.js +7 -0
- package/index.d.ts +4 -1
- package/index.js +5 -2
- package/modules/index.d.ts +5 -0
- package/modules/index.js +21 -0
- package/modules/orm/client.d.ts +97 -0
- package/modules/orm/client.js +152 -0
- package/modules/orm/index.d.ts +209 -0
- package/modules/orm/index.js +179 -0
- package/modules/orm/input-types.d.ts +11821 -0
- package/modules/orm/input-types.js +16 -0
- package/modules/orm/models/configSecretsModule.d.ts +54 -0
- package/{public/orm/models/appLimitCapsDefault.js → modules/orm/models/configSecretsModule.js} +27 -27
- package/modules/orm/models/i18NModule.d.ts +54 -0
- package/modules/orm/models/i18NModule.js +104 -0
- package/modules/orm/models/index.d.ts +61 -0
- package/modules/orm/models/index.js +121 -0
- package/modules/orm/models/userCredentialsModule.d.ts +54 -0
- package/modules/orm/models/userCredentialsModule.js +104 -0
- package/modules/orm/models/userSettingsModule.d.ts +54 -0
- package/modules/orm/models/userSettingsModule.js +104 -0
- package/modules/orm/mutation/index.d.ts +134 -0
- package/modules/orm/mutation/index.js +129 -0
- package/modules/orm/query/index.d.ts +39 -0
- package/modules/orm/query/index.js +57 -0
- package/modules/orm/query-builder.d.ts +110 -0
- package/modules/orm/query-builder.js +756 -0
- package/modules/orm/realtime.d.ts +142 -0
- package/modules/orm/realtime.js +104 -0
- package/modules/orm/select-types.d.ts +125 -0
- package/modules/orm/select-types.js +2 -0
- package/modules/orm/types.d.ts +6 -0
- package/modules/orm/types.js +23 -0
- package/objects/orm/index.d.ts +2 -50
- package/objects/orm/index.js +3 -7
- package/objects/orm/input-types.d.ts +153 -260
- package/objects/orm/models/index.d.ts +1 -1
- package/objects/orm/models/index.js +3 -3
- package/objects/orm/mutation/index.d.ts +1 -41
- package/objects/orm/mutation/index.js +0 -60
- package/package.json +2 -2
- package/usage/index.d.ts +5 -0
- package/usage/index.js +21 -0
- package/usage/orm/client.d.ts +97 -0
- package/usage/orm/client.js +152 -0
- package/usage/orm/index.d.ts +95 -0
- package/usage/orm/index.js +99 -0
- package/usage/orm/input-types.d.ts +3313 -0
- package/usage/orm/input-types.js +17 -0
- package/usage/orm/models/index.d.ts +23 -0
- package/usage/orm/models/index.js +44 -0
- package/usage/orm/mutation/index.d.ts +58 -0
- package/usage/orm/mutation/index.js +69 -0
- package/usage/orm/query-builder.d.ts +110 -0
- package/usage/orm/query-builder.js +756 -0
- package/usage/orm/realtime.d.ts +142 -0
- package/usage/orm/realtime.js +104 -0
- package/usage/orm/select-types.d.ts +125 -0
- package/usage/orm/select-types.js +2 -0
- package/usage/orm/types.d.ts +6 -0
- package/usage/orm/types.js +23 -0
- package/esm/objects/orm/query/index.d.ts +0 -69
- package/esm/objects/orm/query/index.js +0 -110
- package/esm/public/orm/index.d.ts +0 -627
- package/esm/public/orm/index.js +0 -344
- package/esm/public/orm/input-types.d.ts +0 -38680
- package/esm/public/orm/input-types.js +0 -224
- package/esm/public/orm/models/appAdminGrant.d.ts +0 -54
- package/esm/public/orm/models/appAdminGrant.js +0 -100
- package/esm/public/orm/models/appClaimedInvite.d.ts +0 -54
- package/esm/public/orm/models/appClaimedInvite.js +0 -100
- package/esm/public/orm/models/appGrant.d.ts +0 -54
- package/esm/public/orm/models/appInvite.d.ts +0 -54
- package/esm/public/orm/models/appLimit.d.ts +0 -54
- package/esm/public/orm/models/appLimit.js +0 -100
- package/esm/public/orm/models/appLimitCap.d.ts +0 -54
- package/esm/public/orm/models/appLimitCapsDefault.d.ts +0 -54
- package/esm/public/orm/models/appLimitCredit.d.ts +0 -54
- package/esm/public/orm/models/appLimitCredit.js +0 -100
- package/esm/public/orm/models/appLimitCreditCode.d.ts +0 -54
- package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +0 -54
- package/esm/public/orm/models/appLimitCreditCodeItem.js +0 -100
- package/esm/public/orm/models/appLimitCreditRedemption.d.ts +0 -54
- package/esm/public/orm/models/appLimitCreditRedemption.js +0 -100
- package/esm/public/orm/models/appLimitDefault.d.ts +0 -54
- package/esm/public/orm/models/appLimitDefault.js +0 -100
- package/esm/public/orm/models/appLimitEvent.d.ts +0 -54
- package/esm/public/orm/models/appLimitWarning.d.ts +0 -54
- package/esm/public/orm/models/appLimitWarning.js +0 -100
- package/esm/public/orm/models/appMembership.d.ts +0 -54
- package/esm/public/orm/models/appMembership.js +0 -100
- package/esm/public/orm/models/appMembershipDefault.d.ts +0 -54
- package/esm/public/orm/models/appMembershipDefault.js +0 -100
- package/esm/public/orm/models/appOwnerGrant.d.ts +0 -54
- package/esm/public/orm/models/appOwnerGrant.js +0 -100
- package/esm/public/orm/models/appPermission.d.ts +0 -54
- package/esm/public/orm/models/appPermission.js +0 -100
- package/esm/public/orm/models/appPermissionDefault.d.ts +0 -54
- package/esm/public/orm/models/appPermissionDefault.js +0 -100
- package/esm/public/orm/models/auditLogAuth.d.ts +0 -54
- package/esm/public/orm/models/cryptoAddress.d.ts +0 -54
- package/esm/public/orm/models/cryptoAddress.js +0 -100
- package/esm/public/orm/models/email.d.ts +0 -54
- package/esm/public/orm/models/email.js +0 -100
- package/esm/public/orm/models/identityProvider.d.ts +0 -30
- package/esm/public/orm/models/identityProvider.js +0 -55
- package/esm/public/orm/models/index.d.ts +0 -155
- package/esm/public/orm/models/index.js +0 -155
- package/esm/public/orm/models/membershipType.d.ts +0 -54
- package/esm/public/orm/models/membershipType.js +0 -100
- package/esm/public/orm/models/orgAdminGrant.d.ts +0 -54
- package/esm/public/orm/models/orgAdminGrant.js +0 -100
- package/esm/public/orm/models/orgChartEdge.d.ts +0 -54
- package/esm/public/orm/models/orgChartEdge.js +0 -100
- package/esm/public/orm/models/orgChartEdgeGrant.d.ts +0 -54
- package/esm/public/orm/models/orgChartEdgeGrant.js +0 -100
- package/esm/public/orm/models/orgClaimedInvite.d.ts +0 -54
- package/esm/public/orm/models/orgClaimedInvite.js +0 -100
- package/esm/public/orm/models/orgGetManagersRecord.d.ts +0 -30
- package/esm/public/orm/models/orgGetManagersRecord.js +0 -55
- package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +0 -30
- package/esm/public/orm/models/orgGetSubordinatesRecord.js +0 -55
- package/esm/public/orm/models/orgGrant.d.ts +0 -54
- package/esm/public/orm/models/orgGrant.js +0 -100
- package/esm/public/orm/models/orgInvite.d.ts +0 -54
- package/esm/public/orm/models/orgInvite.js +0 -100
- package/esm/public/orm/models/orgLimit.d.ts +0 -54
- package/esm/public/orm/models/orgLimit.js +0 -100
- package/esm/public/orm/models/orgLimitAggregate.d.ts +0 -54
- package/esm/public/orm/models/orgLimitAggregate.js +0 -100
- package/esm/public/orm/models/orgLimitCap.d.ts +0 -54
- package/esm/public/orm/models/orgLimitCap.js +0 -100
- package/esm/public/orm/models/orgLimitCapsDefault.d.ts +0 -54
- package/esm/public/orm/models/orgLimitCapsDefault.js +0 -100
- package/esm/public/orm/models/orgLimitCredit.d.ts +0 -54
- package/esm/public/orm/models/orgLimitCredit.js +0 -100
- package/esm/public/orm/models/orgLimitDefault.d.ts +0 -54
- package/esm/public/orm/models/orgLimitDefault.js +0 -100
- package/esm/public/orm/models/orgLimitEvent.d.ts +0 -54
- package/esm/public/orm/models/orgLimitEvent.js +0 -100
- package/esm/public/orm/models/orgLimitWarning.d.ts +0 -54
- package/esm/public/orm/models/orgLimitWarning.js +0 -100
- package/esm/public/orm/models/orgMember.d.ts +0 -54
- package/esm/public/orm/models/orgMember.js +0 -100
- package/esm/public/orm/models/orgMemberProfile.d.ts +0 -54
- package/esm/public/orm/models/orgMemberProfile.js +0 -100
- package/esm/public/orm/models/orgMembership.d.ts +0 -54
- package/esm/public/orm/models/orgMembership.js +0 -100
- package/esm/public/orm/models/orgMembershipDefault.d.ts +0 -54
- package/esm/public/orm/models/orgMembershipDefault.js +0 -100
- package/esm/public/orm/models/orgMembershipSetting.d.ts +0 -54
- package/esm/public/orm/models/orgMembershipSetting.js +0 -100
- package/esm/public/orm/models/orgOwnerGrant.d.ts +0 -54
- package/esm/public/orm/models/orgOwnerGrant.js +0 -100
- package/esm/public/orm/models/orgPermission.d.ts +0 -54
- package/esm/public/orm/models/orgPermission.js +0 -100
- package/esm/public/orm/models/orgPermissionDefault.d.ts +0 -54
- package/esm/public/orm/models/orgPermissionDefault.js +0 -100
- package/esm/public/orm/models/phoneNumber.d.ts +0 -54
- package/esm/public/orm/models/phoneNumber.js +0 -100
- package/esm/public/orm/models/roleType.d.ts +0 -54
- package/esm/public/orm/models/roleType.js +0 -100
- package/esm/public/orm/models/user.d.ts +0 -54
- package/esm/public/orm/models/userConnectedAccount.d.ts +0 -36
- package/esm/public/orm/models/userConnectedAccount.js +0 -76
- package/esm/public/orm/models/webauthnCredential.d.ts +0 -54
- package/esm/public/orm/models/webauthnCredential.js +0 -100
- package/esm/public/orm/mutation/index.d.ts +0 -401
- package/esm/public/orm/mutation/index.js +0 -498
- package/esm/public/orm/query/index.d.ts +0 -171
- package/esm/public/orm/query/index.js +0 -254
- package/objects/orm/query/index.d.ts +0 -69
- package/objects/orm/query/index.js +0 -113
- package/public/orm/index.d.ts +0 -627
- package/public/orm/index.js +0 -367
- package/public/orm/input-types.d.ts +0 -38680
- package/public/orm/input-types.js +0 -227
- package/public/orm/models/appAdminGrant.d.ts +0 -54
- package/public/orm/models/appAdminGrant.js +0 -104
- package/public/orm/models/appClaimedInvite.d.ts +0 -54
- package/public/orm/models/appClaimedInvite.js +0 -104
- package/public/orm/models/appGrant.d.ts +0 -54
- package/public/orm/models/appGrant.js +0 -104
- package/public/orm/models/appInvite.d.ts +0 -54
- package/public/orm/models/appLimit.d.ts +0 -54
- package/public/orm/models/appLimit.js +0 -104
- package/public/orm/models/appLimitCap.d.ts +0 -54
- package/public/orm/models/appLimitCapsDefault.d.ts +0 -54
- package/public/orm/models/appLimitCredit.d.ts +0 -54
- package/public/orm/models/appLimitCredit.js +0 -104
- package/public/orm/models/appLimitCreditCode.d.ts +0 -54
- package/public/orm/models/appLimitCreditCodeItem.d.ts +0 -54
- package/public/orm/models/appLimitCreditCodeItem.js +0 -104
- package/public/orm/models/appLimitCreditRedemption.d.ts +0 -54
- package/public/orm/models/appLimitCreditRedemption.js +0 -104
- package/public/orm/models/appLimitDefault.d.ts +0 -54
- package/public/orm/models/appLimitDefault.js +0 -104
- package/public/orm/models/appLimitEvent.d.ts +0 -54
- package/public/orm/models/appLimitWarning.d.ts +0 -54
- package/public/orm/models/appLimitWarning.js +0 -104
- package/public/orm/models/appMembership.d.ts +0 -54
- package/public/orm/models/appMembership.js +0 -104
- package/public/orm/models/appMembershipDefault.d.ts +0 -54
- package/public/orm/models/appMembershipDefault.js +0 -104
- package/public/orm/models/appOwnerGrant.d.ts +0 -54
- package/public/orm/models/appOwnerGrant.js +0 -104
- package/public/orm/models/appPermission.d.ts +0 -54
- package/public/orm/models/appPermission.js +0 -104
- package/public/orm/models/appPermissionDefault.d.ts +0 -54
- package/public/orm/models/appPermissionDefault.js +0 -104
- package/public/orm/models/auditLogAuth.d.ts +0 -54
- package/public/orm/models/cryptoAddress.d.ts +0 -54
- package/public/orm/models/cryptoAddress.js +0 -104
- package/public/orm/models/email.d.ts +0 -54
- package/public/orm/models/identityProvider.d.ts +0 -30
- package/public/orm/models/identityProvider.js +0 -59
- package/public/orm/models/index.d.ts +0 -155
- package/public/orm/models/index.js +0 -310
- package/public/orm/models/membershipType.d.ts +0 -54
- package/public/orm/models/membershipType.js +0 -104
- package/public/orm/models/orgAdminGrant.d.ts +0 -54
- package/public/orm/models/orgAdminGrant.js +0 -104
- package/public/orm/models/orgChartEdge.d.ts +0 -54
- package/public/orm/models/orgChartEdge.js +0 -104
- package/public/orm/models/orgChartEdgeGrant.d.ts +0 -54
- package/public/orm/models/orgChartEdgeGrant.js +0 -104
- package/public/orm/models/orgClaimedInvite.d.ts +0 -54
- package/public/orm/models/orgClaimedInvite.js +0 -104
- package/public/orm/models/orgGetManagersRecord.d.ts +0 -30
- package/public/orm/models/orgGetManagersRecord.js +0 -59
- package/public/orm/models/orgGetSubordinatesRecord.d.ts +0 -30
- package/public/orm/models/orgGetSubordinatesRecord.js +0 -59
- package/public/orm/models/orgGrant.d.ts +0 -54
- package/public/orm/models/orgGrant.js +0 -104
- package/public/orm/models/orgInvite.d.ts +0 -54
- package/public/orm/models/orgInvite.js +0 -104
- package/public/orm/models/orgLimit.d.ts +0 -54
- package/public/orm/models/orgLimit.js +0 -104
- package/public/orm/models/orgLimitAggregate.d.ts +0 -54
- package/public/orm/models/orgLimitAggregate.js +0 -104
- package/public/orm/models/orgLimitCap.d.ts +0 -54
- package/public/orm/models/orgLimitCap.js +0 -104
- package/public/orm/models/orgLimitCapsDefault.d.ts +0 -54
- package/public/orm/models/orgLimitCapsDefault.js +0 -104
- package/public/orm/models/orgLimitCredit.d.ts +0 -54
- package/public/orm/models/orgLimitCredit.js +0 -104
- package/public/orm/models/orgLimitDefault.d.ts +0 -54
- package/public/orm/models/orgLimitDefault.js +0 -104
- package/public/orm/models/orgLimitEvent.d.ts +0 -54
- package/public/orm/models/orgLimitEvent.js +0 -104
- package/public/orm/models/orgLimitWarning.d.ts +0 -54
- package/public/orm/models/orgLimitWarning.js +0 -104
- package/public/orm/models/orgMember.d.ts +0 -54
- package/public/orm/models/orgMember.js +0 -104
- package/public/orm/models/orgMemberProfile.d.ts +0 -54
- package/public/orm/models/orgMemberProfile.js +0 -104
- package/public/orm/models/orgMembership.d.ts +0 -54
- package/public/orm/models/orgMembership.js +0 -104
- package/public/orm/models/orgMembershipDefault.d.ts +0 -54
- package/public/orm/models/orgMembershipDefault.js +0 -104
- package/public/orm/models/orgMembershipSetting.d.ts +0 -54
- package/public/orm/models/orgMembershipSetting.js +0 -104
- package/public/orm/models/orgOwnerGrant.d.ts +0 -54
- package/public/orm/models/orgOwnerGrant.js +0 -104
- package/public/orm/models/orgPermission.d.ts +0 -54
- package/public/orm/models/orgPermission.js +0 -104
- package/public/orm/models/orgPermissionDefault.d.ts +0 -54
- package/public/orm/models/orgPermissionDefault.js +0 -104
- package/public/orm/models/phoneNumber.d.ts +0 -54
- package/public/orm/models/phoneNumber.js +0 -104
- package/public/orm/models/roleType.d.ts +0 -54
- package/public/orm/models/roleType.js +0 -104
- package/public/orm/models/user.d.ts +0 -54
- package/public/orm/models/user.js +0 -104
- package/public/orm/models/userConnectedAccount.d.ts +0 -36
- package/public/orm/models/userConnectedAccount.js +0 -80
- package/public/orm/models/webauthnCredential.d.ts +0 -54
- package/public/orm/models/webauthnCredential.js +0 -104
- package/public/orm/mutation/index.d.ts +0 -401
- package/public/orm/mutation/index.js +0 -501
- package/public/orm/query/index.d.ts +0 -171
- package/public/orm/query/index.js +0 -257
- /package/{esm/public → agent}/index.d.ts +0 -0
- /package/{public → agent}/index.js +0 -0
- /package/{esm/public → agent}/orm/client.d.ts +0 -0
- /package/{public → agent}/orm/client.js +0 -0
- /package/{esm/public → agent}/orm/query-builder.d.ts +0 -0
- /package/{public → agent}/orm/query-builder.js +0 -0
- /package/{esm/public → agent}/orm/realtime.d.ts +0 -0
- /package/{public → agent}/orm/realtime.js +0 -0
- /package/{esm/public → agent}/orm/select-types.d.ts +0 -0
- /package/{public → agent}/orm/select-types.js +0 -0
- /package/{esm/public → agent}/orm/types.d.ts +0 -0
- /package/{public → agent}/orm/types.js +0 -0
- /package/{public → api}/index.d.ts +0 -0
- /package/{public → api}/orm/client.d.ts +0 -0
- /package/{esm/public → api}/orm/models/api.d.ts +0 -0
- /package/{public → api}/orm/models/api.js +0 -0
- /package/{esm/public → api}/orm/models/apiModule.d.ts +0 -0
- /package/{public → api}/orm/models/apiModule.js +0 -0
- /package/{esm/public → api}/orm/models/apiSchema.d.ts +0 -0
- /package/{public → api}/orm/models/apiSchema.js +0 -0
- /package/{esm/public → api}/orm/models/apiSetting.d.ts +0 -0
- /package/{public → api}/orm/models/apiSetting.js +0 -0
- /package/{esm/public → api}/orm/models/app.d.ts +0 -0
- /package/{public → api}/orm/models/app.js +0 -0
- /package/{esm/public → api}/orm/models/astMigration.d.ts +0 -0
- /package/{public → api}/orm/models/astMigration.js +0 -0
- /package/{esm/public → api}/orm/models/checkConstraint.d.ts +0 -0
- /package/{public → api}/orm/models/checkConstraint.js +0 -0
- /package/{esm/public → api}/orm/models/corsSetting.d.ts +0 -0
- /package/{public → api}/orm/models/corsSetting.js +0 -0
- /package/{esm/public → api}/orm/models/database.d.ts +0 -0
- /package/{public → api}/orm/models/database.js +0 -0
- /package/{esm/public → api}/orm/models/databaseSetting.d.ts +0 -0
- /package/{public → api}/orm/models/databaseSetting.js +0 -0
- /package/{esm/public → api}/orm/models/databaseTransfer.d.ts +0 -0
- /package/{public → api}/orm/models/databaseTransfer.js +0 -0
- /package/{esm/public → api}/orm/models/defaultPrivilege.d.ts +0 -0
- /package/{public → api}/orm/models/defaultPrivilege.js +0 -0
- /package/{esm/public → api}/orm/models/domain.d.ts +0 -0
- /package/{public → api}/orm/models/domain.js +0 -0
- /package/{esm/public → api}/orm/models/embeddingChunk.d.ts +0 -0
- /package/{public → api}/orm/models/embeddingChunk.js +0 -0
- /package/{esm/public → api}/orm/models/enum.d.ts +0 -0
- /package/{public → api}/orm/models/enum.js +0 -0
- /package/{esm/public → api}/orm/models/field.d.ts +0 -0
- /package/{public → api}/orm/models/field.js +0 -0
- /package/{esm/public → api}/orm/models/foreignKeyConstraint.d.ts +0 -0
- /package/{public → api}/orm/models/foreignKeyConstraint.js +0 -0
- /package/{esm/public → api}/orm/models/fullTextSearch.d.ts +0 -0
- /package/{public → api}/orm/models/fullTextSearch.js +0 -0
- /package/{esm/public → api}/orm/models/function.d.ts +0 -0
- /package/{public → api}/orm/models/function.js +0 -0
- /package/{esm/public → api}/orm/models/indexModel.d.ts +0 -0
- /package/{public → api}/orm/models/indexModel.js +0 -0
- /package/{esm/public → api}/orm/models/migrateFile.d.ts +0 -0
- /package/{public → api}/orm/models/migrateFile.js +0 -0
- /package/{esm/public → api}/orm/models/nodeTypeRegistry.d.ts +0 -0
- /package/{public → api}/orm/models/nodeTypeRegistry.js +0 -0
- /package/{esm/public → api}/orm/models/partition.d.ts +0 -0
- /package/{public → api}/orm/models/partition.js +0 -0
- /package/{esm/public → api}/orm/models/policy.d.ts +0 -0
- /package/{public → api}/orm/models/policy.js +0 -0
- /package/{esm/public → api}/orm/models/primaryKeyConstraint.d.ts +0 -0
- /package/{public → api}/orm/models/primaryKeyConstraint.js +0 -0
- /package/{esm/public → api}/orm/models/pubkeySetting.d.ts +0 -0
- /package/{public → api}/orm/models/pubkeySetting.js +0 -0
- /package/{esm/public → api}/orm/models/rlsSetting.d.ts +0 -0
- /package/{public → api}/orm/models/rlsSetting.js +0 -0
- /package/{esm/public → api}/orm/models/schema.d.ts +0 -0
- /package/{public → api}/orm/models/schema.js +0 -0
- /package/{esm/public → api}/orm/models/schemaGrant.d.ts +0 -0
- /package/{public → api}/orm/models/schemaGrant.js +0 -0
- /package/{esm/public → api}/orm/models/site.d.ts +0 -0
- /package/{public → api}/orm/models/site.js +0 -0
- /package/{esm/public → api}/orm/models/siteMetadatum.d.ts +0 -0
- /package/{public → api}/orm/models/siteMetadatum.js +0 -0
- /package/{esm/public → api}/orm/models/siteModule.d.ts +0 -0
- /package/{public → api}/orm/models/siteModule.js +0 -0
- /package/{esm/public → api}/orm/models/siteTheme.d.ts +0 -0
- /package/{public → api}/orm/models/siteTheme.js +0 -0
- /package/{esm/public → api}/orm/models/spatialRelation.d.ts +0 -0
- /package/{public → api}/orm/models/spatialRelation.js +0 -0
- /package/{esm/public → api}/orm/models/sqlAction.d.ts +0 -0
- /package/{public → api}/orm/models/sqlAction.js +0 -0
- /package/{esm/public → api}/orm/models/table.d.ts +0 -0
- /package/{public → api}/orm/models/table.js +0 -0
- /package/{esm/public → api}/orm/models/tableGrant.d.ts +0 -0
- /package/{public → api}/orm/models/tableGrant.js +0 -0
- /package/{esm/public → api}/orm/models/trigger.d.ts +0 -0
- /package/{public → api}/orm/models/trigger.js +0 -0
- /package/{esm/public → api}/orm/models/triggerFunction.d.ts +0 -0
- /package/{public → api}/orm/models/triggerFunction.js +0 -0
- /package/{esm/public → api}/orm/models/uniqueConstraint.d.ts +0 -0
- /package/{public → api}/orm/models/uniqueConstraint.js +0 -0
- /package/{esm/public → api}/orm/models/view.d.ts +0 -0
- /package/{public → api}/orm/models/view.js +0 -0
- /package/{esm/public → api}/orm/models/viewGrant.d.ts +0 -0
- /package/{public → api}/orm/models/viewGrant.js +0 -0
- /package/{esm/public → api}/orm/models/viewRule.d.ts +0 -0
- /package/{public → api}/orm/models/viewRule.js +0 -0
- /package/{esm/public → api}/orm/models/viewTable.d.ts +0 -0
- /package/{public → api}/orm/models/viewTable.js +0 -0
- /package/{esm/public → api}/orm/models/webauthnSetting.d.ts +0 -0
- /package/{public → api}/orm/models/webauthnSetting.js +0 -0
- /package/{public → api}/orm/query-builder.d.ts +0 -0
- /package/{public → api}/orm/realtime.d.ts +0 -0
- /package/{public → api}/orm/select-types.d.ts +0 -0
- /package/{public → api}/orm/types.d.ts +0 -0
- /package/esm/{public/index.js → agent/index.d.ts} +0 -0
- /package/esm/{public → agent}/orm/client.js +0 -0
- /package/esm/{public → agent}/orm/query-builder.js +0 -0
- /package/esm/{public → agent}/orm/realtime.js +0 -0
- /package/esm/{public → agent}/orm/select-types.js +0 -0
- /package/esm/{public → agent}/orm/types.js +0 -0
- /package/{public → esm/api}/orm/models/api.d.ts +0 -0
- /package/esm/{public → api}/orm/models/api.js +0 -0
- /package/{public → esm/api}/orm/models/apiModule.d.ts +0 -0
- /package/esm/{public → api}/orm/models/apiModule.js +0 -0
- /package/{public → esm/api}/orm/models/apiSchema.d.ts +0 -0
- /package/esm/{public → api}/orm/models/apiSchema.js +0 -0
- /package/{public → esm/api}/orm/models/apiSetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/apiSetting.js +0 -0
- /package/{public → esm/api}/orm/models/app.d.ts +0 -0
- /package/esm/{public → api}/orm/models/app.js +0 -0
- /package/{public → esm/api}/orm/models/astMigration.d.ts +0 -0
- /package/esm/{public → api}/orm/models/astMigration.js +0 -0
- /package/{public → esm/api}/orm/models/checkConstraint.d.ts +0 -0
- /package/esm/{public → api}/orm/models/checkConstraint.js +0 -0
- /package/{public → esm/api}/orm/models/corsSetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/corsSetting.js +0 -0
- /package/{public → esm/api}/orm/models/database.d.ts +0 -0
- /package/esm/{public → api}/orm/models/database.js +0 -0
- /package/{public → esm/api}/orm/models/databaseSetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/databaseSetting.js +0 -0
- /package/{public → esm/api}/orm/models/databaseTransfer.d.ts +0 -0
- /package/esm/{public → api}/orm/models/databaseTransfer.js +0 -0
- /package/{public → esm/api}/orm/models/defaultPrivilege.d.ts +0 -0
- /package/esm/{public → api}/orm/models/defaultPrivilege.js +0 -0
- /package/{public → esm/api}/orm/models/domain.d.ts +0 -0
- /package/esm/{public → api}/orm/models/domain.js +0 -0
- /package/{public → esm/api}/orm/models/embeddingChunk.d.ts +0 -0
- /package/esm/{public → api}/orm/models/embeddingChunk.js +0 -0
- /package/{public → esm/api}/orm/models/enum.d.ts +0 -0
- /package/esm/{public → api}/orm/models/enum.js +0 -0
- /package/{public → esm/api}/orm/models/field.d.ts +0 -0
- /package/esm/{public → api}/orm/models/field.js +0 -0
- /package/{public → esm/api}/orm/models/foreignKeyConstraint.d.ts +0 -0
- /package/esm/{public → api}/orm/models/foreignKeyConstraint.js +0 -0
- /package/{public → esm/api}/orm/models/fullTextSearch.d.ts +0 -0
- /package/esm/{public → api}/orm/models/fullTextSearch.js +0 -0
- /package/{public → esm/api}/orm/models/function.d.ts +0 -0
- /package/esm/{public → api}/orm/models/function.js +0 -0
- /package/{public → esm/api}/orm/models/indexModel.d.ts +0 -0
- /package/esm/{public → api}/orm/models/indexModel.js +0 -0
- /package/{public → esm/api}/orm/models/migrateFile.d.ts +0 -0
- /package/esm/{public → api}/orm/models/migrateFile.js +0 -0
- /package/{public → esm/api}/orm/models/nodeTypeRegistry.d.ts +0 -0
- /package/esm/{public → api}/orm/models/nodeTypeRegistry.js +0 -0
- /package/{public → esm/api}/orm/models/partition.d.ts +0 -0
- /package/esm/{public → api}/orm/models/partition.js +0 -0
- /package/{public → esm/api}/orm/models/policy.d.ts +0 -0
- /package/esm/{public → api}/orm/models/policy.js +0 -0
- /package/{public → esm/api}/orm/models/primaryKeyConstraint.d.ts +0 -0
- /package/esm/{public → api}/orm/models/primaryKeyConstraint.js +0 -0
- /package/{public → esm/api}/orm/models/pubkeySetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/pubkeySetting.js +0 -0
- /package/{public → esm/api}/orm/models/rlsSetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/rlsSetting.js +0 -0
- /package/{public → esm/api}/orm/models/schema.d.ts +0 -0
- /package/esm/{public → api}/orm/models/schema.js +0 -0
- /package/{public → esm/api}/orm/models/schemaGrant.d.ts +0 -0
- /package/esm/{public → api}/orm/models/schemaGrant.js +0 -0
- /package/{public → esm/api}/orm/models/site.d.ts +0 -0
- /package/esm/{public → api}/orm/models/site.js +0 -0
- /package/{public → esm/api}/orm/models/siteMetadatum.d.ts +0 -0
- /package/esm/{public → api}/orm/models/siteMetadatum.js +0 -0
- /package/{public → esm/api}/orm/models/siteModule.d.ts +0 -0
- /package/esm/{public → api}/orm/models/siteModule.js +0 -0
- /package/{public → esm/api}/orm/models/siteTheme.d.ts +0 -0
- /package/esm/{public → api}/orm/models/siteTheme.js +0 -0
- /package/{public → esm/api}/orm/models/spatialRelation.d.ts +0 -0
- /package/esm/{public → api}/orm/models/spatialRelation.js +0 -0
- /package/{public → esm/api}/orm/models/sqlAction.d.ts +0 -0
- /package/esm/{public → api}/orm/models/sqlAction.js +0 -0
- /package/{public → esm/api}/orm/models/table.d.ts +0 -0
- /package/esm/{public → api}/orm/models/table.js +0 -0
- /package/{public → esm/api}/orm/models/tableGrant.d.ts +0 -0
- /package/esm/{public → api}/orm/models/tableGrant.js +0 -0
- /package/{public → esm/api}/orm/models/trigger.d.ts +0 -0
- /package/esm/{public → api}/orm/models/trigger.js +0 -0
- /package/{public → esm/api}/orm/models/triggerFunction.d.ts +0 -0
- /package/esm/{public → api}/orm/models/triggerFunction.js +0 -0
- /package/{public → esm/api}/orm/models/uniqueConstraint.d.ts +0 -0
- /package/esm/{public → api}/orm/models/uniqueConstraint.js +0 -0
- /package/{public → esm/api}/orm/models/view.d.ts +0 -0
- /package/esm/{public → api}/orm/models/view.js +0 -0
- /package/{public → esm/api}/orm/models/viewGrant.d.ts +0 -0
- /package/esm/{public → api}/orm/models/viewGrant.js +0 -0
- /package/{public → esm/api}/orm/models/viewRule.d.ts +0 -0
- /package/esm/{public → api}/orm/models/viewRule.js +0 -0
- /package/{public → esm/api}/orm/models/viewTable.d.ts +0 -0
- /package/esm/{public → api}/orm/models/viewTable.js +0 -0
- /package/{public → esm/api}/orm/models/webauthnSetting.d.ts +0 -0
- /package/esm/{public → api}/orm/models/webauthnSetting.js +0 -0
- /package/esm/{public → modules}/orm/models/agentModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/agentModule.js +0 -0
- /package/esm/{public → modules}/orm/models/billingModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/billingModule.js +0 -0
- /package/esm/{public → modules}/orm/models/billingProviderModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/billingProviderModule.js +0 -0
- /package/esm/{public → modules}/orm/models/blueprint.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/blueprint.js +0 -0
- /package/esm/{public → modules}/orm/models/blueprintConstruction.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/blueprintConstruction.js +0 -0
- /package/esm/{public → modules}/orm/models/blueprintTemplate.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/blueprintTemplate.js +0 -0
- /package/esm/{public → modules}/orm/models/computeLogModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/computeLogModule.js +0 -0
- /package/esm/{public → modules}/orm/models/configSecretsOrgModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/configSecretsOrgModule.js +0 -0
- /package/esm/{public → modules}/orm/models/configSecretsUserModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/configSecretsUserModule.js +0 -0
- /package/esm/{public → modules}/orm/models/connectedAccountsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/connectedAccountsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/cryptoAddressesModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/cryptoAddressesModule.js +0 -0
- /package/esm/{public → modules}/orm/models/cryptoAuthModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/cryptoAuthModule.js +0 -0
- /package/esm/{public → modules}/orm/models/databaseProvisionModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/databaseProvisionModule.js +0 -0
- /package/esm/{public → modules}/orm/models/dbUsageModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/dbUsageModule.js +0 -0
- /package/esm/{public → modules}/orm/models/defaultIdsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/defaultIdsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/denormalizedTableField.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/denormalizedTableField.js +0 -0
- /package/esm/{public → modules}/orm/models/devicesModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/devicesModule.js +0 -0
- /package/esm/{public → modules}/orm/models/emailsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/emailsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/entityTypeProvision.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/entityTypeProvision.js +0 -0
- /package/esm/{public → modules}/orm/models/eventsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/eventsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/functionModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/functionModule.js +0 -0
- /package/esm/{public → modules}/orm/models/graphModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/graphModule.js +0 -0
- /package/esm/{public → modules}/orm/models/hierarchyModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/hierarchyModule.js +0 -0
- /package/esm/{public → modules}/orm/models/identityProvidersModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/identityProvidersModule.js +0 -0
- /package/esm/{public → modules}/orm/models/inferenceLogModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/inferenceLogModule.js +0 -0
- /package/esm/{public → modules}/orm/models/invitesModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/invitesModule.js +0 -0
- /package/esm/{public → modules}/orm/models/limitsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/limitsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/membershipTypesModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/membershipTypesModule.js +0 -0
- /package/esm/{public → modules}/orm/models/membershipsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/membershipsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/merkleStoreModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/merkleStoreModule.js +0 -0
- /package/esm/{public → modules}/orm/models/namespaceModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/namespaceModule.js +0 -0
- /package/esm/{public → modules}/orm/models/notificationsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/notificationsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/permissionsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/permissionsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/phoneNumbersModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/phoneNumbersModule.js +0 -0
- /package/esm/{public → modules}/orm/models/plansModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/plansModule.js +0 -0
- /package/esm/{public → modules}/orm/models/profilesModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/profilesModule.js +0 -0
- /package/esm/{public → modules}/orm/models/rateLimitMetersModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/rateLimitMetersModule.js +0 -0
- /package/esm/{public → modules}/orm/models/rateLimitsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/rateLimitsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/realtimeModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/realtimeModule.js +0 -0
- /package/esm/{public → modules}/orm/models/relationProvision.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/relationProvision.js +0 -0
- /package/esm/{public → modules}/orm/models/rlsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/rlsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/secureTableProvision.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/secureTableProvision.js +0 -0
- /package/esm/{public → modules}/orm/models/sessionSecretsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/sessionSecretsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/sessionsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/sessionsModule.js +0 -0
- /package/esm/{public → modules}/orm/models/storageLogModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/storageLogModule.js +0 -0
- /package/esm/{public → modules}/orm/models/storageModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/storageModule.js +0 -0
- /package/esm/{public → modules}/orm/models/transferLogModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/transferLogModule.js +0 -0
- /package/esm/{public → modules}/orm/models/userAuthModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/userAuthModule.js +0 -0
- /package/esm/{public → modules}/orm/models/userStateModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/userStateModule.js +0 -0
- /package/esm/{public → modules}/orm/models/usersModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/usersModule.js +0 -0
- /package/esm/{public → modules}/orm/models/webauthnAuthModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/webauthnAuthModule.js +0 -0
- /package/esm/{public → modules}/orm/models/webauthnCredentialsModule.d.ts +0 -0
- /package/esm/{public → modules}/orm/models/webauthnCredentialsModule.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimit.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimit.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCap.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCap.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCapsDefault.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCapsDefault.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCredit.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCredit.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCreditCode.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCreditCode.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCreditCodeItem.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCreditCodeItem.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitCreditRedemption.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitCreditRedemption.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitDefault.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitDefault.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitEvent.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitEvent.js +0 -0
- /package/{admin → esm/usage}/orm/models/appLimitWarning.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/appLimitWarning.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimit.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimit.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitAggregate.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitAggregate.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitCap.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitCap.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitCapsDefault.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitCapsDefault.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitCredit.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitCredit.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitDefault.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitDefault.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitEvent.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitEvent.js +0 -0
- /package/{admin → esm/usage}/orm/models/orgLimitWarning.d.ts +0 -0
- /package/esm/{admin → usage}/orm/models/orgLimitWarning.js +0 -0
- /package/{public → modules}/orm/models/agentModule.d.ts +0 -0
- /package/{public → modules}/orm/models/agentModule.js +0 -0
- /package/{public → modules}/orm/models/billingModule.d.ts +0 -0
- /package/{public → modules}/orm/models/billingModule.js +0 -0
- /package/{public → modules}/orm/models/billingProviderModule.d.ts +0 -0
- /package/{public → modules}/orm/models/billingProviderModule.js +0 -0
- /package/{public → modules}/orm/models/blueprint.d.ts +0 -0
- /package/{public → modules}/orm/models/blueprint.js +0 -0
- /package/{public → modules}/orm/models/blueprintConstruction.d.ts +0 -0
- /package/{public → modules}/orm/models/blueprintConstruction.js +0 -0
- /package/{public → modules}/orm/models/blueprintTemplate.d.ts +0 -0
- /package/{public → modules}/orm/models/blueprintTemplate.js +0 -0
- /package/{public → modules}/orm/models/computeLogModule.d.ts +0 -0
- /package/{public → modules}/orm/models/computeLogModule.js +0 -0
- /package/{public → modules}/orm/models/configSecretsOrgModule.d.ts +0 -0
- /package/{public → modules}/orm/models/configSecretsOrgModule.js +0 -0
- /package/{public → modules}/orm/models/configSecretsUserModule.d.ts +0 -0
- /package/{public → modules}/orm/models/configSecretsUserModule.js +0 -0
- /package/{public → modules}/orm/models/connectedAccountsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/connectedAccountsModule.js +0 -0
- /package/{public → modules}/orm/models/cryptoAddressesModule.d.ts +0 -0
- /package/{public → modules}/orm/models/cryptoAddressesModule.js +0 -0
- /package/{public → modules}/orm/models/cryptoAuthModule.d.ts +0 -0
- /package/{public → modules}/orm/models/cryptoAuthModule.js +0 -0
- /package/{public → modules}/orm/models/databaseProvisionModule.d.ts +0 -0
- /package/{public → modules}/orm/models/databaseProvisionModule.js +0 -0
- /package/{public → modules}/orm/models/dbUsageModule.d.ts +0 -0
- /package/{public → modules}/orm/models/dbUsageModule.js +0 -0
- /package/{public → modules}/orm/models/defaultIdsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/defaultIdsModule.js +0 -0
- /package/{public → modules}/orm/models/denormalizedTableField.d.ts +0 -0
- /package/{public → modules}/orm/models/denormalizedTableField.js +0 -0
- /package/{public → modules}/orm/models/devicesModule.d.ts +0 -0
- /package/{public → modules}/orm/models/devicesModule.js +0 -0
- /package/{public → modules}/orm/models/emailsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/emailsModule.js +0 -0
- /package/{public → modules}/orm/models/entityTypeProvision.d.ts +0 -0
- /package/{public → modules}/orm/models/entityTypeProvision.js +0 -0
- /package/{public → modules}/orm/models/eventsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/eventsModule.js +0 -0
- /package/{public → modules}/orm/models/functionModule.d.ts +0 -0
- /package/{public → modules}/orm/models/functionModule.js +0 -0
- /package/{public → modules}/orm/models/graphModule.d.ts +0 -0
- /package/{public → modules}/orm/models/graphModule.js +0 -0
- /package/{public → modules}/orm/models/hierarchyModule.d.ts +0 -0
- /package/{public → modules}/orm/models/hierarchyModule.js +0 -0
- /package/{public → modules}/orm/models/identityProvidersModule.d.ts +0 -0
- /package/{public → modules}/orm/models/identityProvidersModule.js +0 -0
- /package/{public → modules}/orm/models/inferenceLogModule.d.ts +0 -0
- /package/{public → modules}/orm/models/inferenceLogModule.js +0 -0
- /package/{public → modules}/orm/models/invitesModule.d.ts +0 -0
- /package/{public → modules}/orm/models/invitesModule.js +0 -0
- /package/{public → modules}/orm/models/limitsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/limitsModule.js +0 -0
- /package/{public → modules}/orm/models/membershipTypesModule.d.ts +0 -0
- /package/{public → modules}/orm/models/membershipTypesModule.js +0 -0
- /package/{public → modules}/orm/models/membershipsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/membershipsModule.js +0 -0
- /package/{public → modules}/orm/models/merkleStoreModule.d.ts +0 -0
- /package/{public → modules}/orm/models/merkleStoreModule.js +0 -0
- /package/{public → modules}/orm/models/namespaceModule.d.ts +0 -0
- /package/{public → modules}/orm/models/namespaceModule.js +0 -0
- /package/{public → modules}/orm/models/notificationsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/notificationsModule.js +0 -0
- /package/{public → modules}/orm/models/permissionsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/permissionsModule.js +0 -0
- /package/{public → modules}/orm/models/phoneNumbersModule.d.ts +0 -0
- /package/{public → modules}/orm/models/phoneNumbersModule.js +0 -0
- /package/{public → modules}/orm/models/plansModule.d.ts +0 -0
- /package/{public → modules}/orm/models/plansModule.js +0 -0
- /package/{public → modules}/orm/models/profilesModule.d.ts +0 -0
- /package/{public → modules}/orm/models/profilesModule.js +0 -0
- /package/{public → modules}/orm/models/rateLimitMetersModule.d.ts +0 -0
- /package/{public → modules}/orm/models/rateLimitMetersModule.js +0 -0
- /package/{public → modules}/orm/models/rateLimitsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/rateLimitsModule.js +0 -0
- /package/{public → modules}/orm/models/realtimeModule.d.ts +0 -0
- /package/{public → modules}/orm/models/realtimeModule.js +0 -0
- /package/{public → modules}/orm/models/relationProvision.d.ts +0 -0
- /package/{public → modules}/orm/models/relationProvision.js +0 -0
- /package/{public → modules}/orm/models/rlsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/rlsModule.js +0 -0
- /package/{public → modules}/orm/models/secureTableProvision.d.ts +0 -0
- /package/{public → modules}/orm/models/secureTableProvision.js +0 -0
- /package/{public → modules}/orm/models/sessionSecretsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/sessionSecretsModule.js +0 -0
- /package/{public → modules}/orm/models/sessionsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/sessionsModule.js +0 -0
- /package/{public → modules}/orm/models/storageLogModule.d.ts +0 -0
- /package/{public → modules}/orm/models/storageLogModule.js +0 -0
- /package/{public → modules}/orm/models/storageModule.d.ts +0 -0
- /package/{public → modules}/orm/models/storageModule.js +0 -0
- /package/{public → modules}/orm/models/transferLogModule.d.ts +0 -0
- /package/{public → modules}/orm/models/transferLogModule.js +0 -0
- /package/{public → modules}/orm/models/userAuthModule.d.ts +0 -0
- /package/{public → modules}/orm/models/userAuthModule.js +0 -0
- /package/{public → modules}/orm/models/userStateModule.d.ts +0 -0
- /package/{public → modules}/orm/models/userStateModule.js +0 -0
- /package/{public → modules}/orm/models/usersModule.d.ts +0 -0
- /package/{public → modules}/orm/models/usersModule.js +0 -0
- /package/{public → modules}/orm/models/webauthnAuthModule.d.ts +0 -0
- /package/{public → modules}/orm/models/webauthnAuthModule.js +0 -0
- /package/{public → modules}/orm/models/webauthnCredentialsModule.d.ts +0 -0
- /package/{public → modules}/orm/models/webauthnCredentialsModule.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimit.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimit.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCap.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCap.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCapsDefault.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCapsDefault.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCredit.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCredit.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCreditCode.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCreditCode.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCreditCodeItem.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCreditCodeItem.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitCreditRedemption.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitCreditRedemption.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitDefault.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitDefault.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitEvent.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitEvent.js +0 -0
- /package/{esm/admin → usage}/orm/models/appLimitWarning.d.ts +0 -0
- /package/{admin → usage}/orm/models/appLimitWarning.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimit.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimit.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitAggregate.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitAggregate.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitCap.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitCap.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitCapsDefault.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitCapsDefault.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitCredit.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitCredit.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitDefault.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitDefault.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitEvent.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitEvent.js +0 -0
- /package/{esm/admin → usage}/orm/models/orgLimitWarning.d.ts +0 -0
- /package/{admin → usage}/orm/models/orgLimitWarning.js +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realtime Manager - WebSocket subscription support
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
interface WsGraphQLError {
|
|
7
|
+
readonly message: string;
|
|
8
|
+
readonly [key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
interface WsExecutionResult<TData = Record<string, unknown>> {
|
|
11
|
+
data?: TData | null;
|
|
12
|
+
errors?: readonly WsGraphQLError[];
|
|
13
|
+
extensions?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
interface WsSink<T> {
|
|
16
|
+
next(value: T): void;
|
|
17
|
+
error(error: unknown): void;
|
|
18
|
+
complete(): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Minimal interface matching the graphql-ws Client.
|
|
22
|
+
* Consumers pass a concrete instance via RealtimeConfig.client.
|
|
23
|
+
*/
|
|
24
|
+
export interface WsClient {
|
|
25
|
+
subscribe<TData = Record<string, unknown>>(payload: {
|
|
26
|
+
query: string;
|
|
27
|
+
variables?: Record<string, unknown>;
|
|
28
|
+
}, sink: WsSink<WsExecutionResult<TData>>): () => void;
|
|
29
|
+
dispose(): void;
|
|
30
|
+
}
|
|
31
|
+
/** The DML operation that triggered the subscription event */
|
|
32
|
+
export type SubscriptionOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
33
|
+
/** Connection state of the WebSocket */
|
|
34
|
+
export type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'reconnecting';
|
|
35
|
+
/** Listener for connection state changes */
|
|
36
|
+
export type ConnectionStateListener = (state: ConnectionState) => void;
|
|
37
|
+
/** Function returned by subscribe() to cancel the subscription */
|
|
38
|
+
export type Unsubscribe = () => void;
|
|
39
|
+
/**
|
|
40
|
+
* A realtime subscription event delivered to the client.
|
|
41
|
+
*
|
|
42
|
+
* @typeParam T - The row type of the subscribed table
|
|
43
|
+
*/
|
|
44
|
+
export interface SubscriptionEvent<T> {
|
|
45
|
+
/** The DML operation that triggered this event */
|
|
46
|
+
operation: SubscriptionOperation;
|
|
47
|
+
/** The current row data (null for DELETE if row is no longer visible) */
|
|
48
|
+
data: T | null;
|
|
49
|
+
/** Previous field values (populated on UPDATE when available) */
|
|
50
|
+
previousValues?: Partial<T>;
|
|
51
|
+
/** Server-side timestamp of when the change occurred */
|
|
52
|
+
timestamp: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Options for creating a subscription.
|
|
56
|
+
*
|
|
57
|
+
* @typeParam T - The row type of the subscribed table
|
|
58
|
+
* @typeParam TFilter - The filter type for the table
|
|
59
|
+
*/
|
|
60
|
+
export interface SubscribeOptions<T, TFilter = Record<string, unknown>> {
|
|
61
|
+
/** Server-side filter to limit which events are delivered */
|
|
62
|
+
filter?: TFilter;
|
|
63
|
+
/** Called when a subscription event is received */
|
|
64
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
65
|
+
/** Called when the subscription encounters an error */
|
|
66
|
+
onError?: (error: Error) => void;
|
|
67
|
+
/** Called when the subscription completes (server-initiated close) */
|
|
68
|
+
onComplete?: () => void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Metadata about a subscription field, used internally to map
|
|
72
|
+
* table names to GraphQL subscription field names and types.
|
|
73
|
+
*/
|
|
74
|
+
export interface SubscriptionFieldMeta {
|
|
75
|
+
/** The GraphQL subscription field name (e.g., 'onContactChanged') */
|
|
76
|
+
fieldName: string;
|
|
77
|
+
/** The table name in the source schema (e.g., 'contact') */
|
|
78
|
+
tableName: string;
|
|
79
|
+
/** The data field name inside the subscription payload (e.g., 'contact') */
|
|
80
|
+
dataFieldName: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Configuration for the realtime (WebSocket) connection.
|
|
84
|
+
* Pass this as the `realtime` option in OrmClientConfig.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* import { createClient } from 'graphql-ws';
|
|
89
|
+
*
|
|
90
|
+
* const client = createOrmClient({
|
|
91
|
+
* endpoint: 'https://api.example.com/graphql',
|
|
92
|
+
* realtime: {
|
|
93
|
+
* client: createClient({ url: 'wss://api.example.com/graphql' }),
|
|
94
|
+
* },
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export interface RealtimeConfig {
|
|
99
|
+
/**
|
|
100
|
+
* A graphql-ws Client instance (or any object satisfying WsClient).
|
|
101
|
+
* The consumer creates this themselves, giving full control over
|
|
102
|
+
* connection options, auth, and transport.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* import { createClient } from 'graphql-ws';
|
|
107
|
+
* const wsClient = createClient({ url: 'wss://...' });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
client: WsClient;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Manages a graphql-ws WebSocket client and multiplexes
|
|
114
|
+
* subscriptions over it. Created by OrmClient when `realtime`
|
|
115
|
+
* config is provided.
|
|
116
|
+
*/
|
|
117
|
+
export declare class RealtimeManager {
|
|
118
|
+
private wsClient;
|
|
119
|
+
private connectionState;
|
|
120
|
+
private stateListeners;
|
|
121
|
+
private activeSubscriptions;
|
|
122
|
+
constructor(config: RealtimeConfig);
|
|
123
|
+
/**
|
|
124
|
+
* Subscribe to a GraphQL subscription operation.
|
|
125
|
+
* Models call this with typed metadata and documents.
|
|
126
|
+
*/
|
|
127
|
+
subscribe<T>(meta: SubscriptionFieldMeta, document: string, variables: Record<string, unknown>, options: {
|
|
128
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
129
|
+
onError?: (error: Error) => void;
|
|
130
|
+
onComplete?: () => void;
|
|
131
|
+
}): Unsubscribe;
|
|
132
|
+
/** Register a listener for connection state changes */
|
|
133
|
+
onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe;
|
|
134
|
+
/** Get current connection state */
|
|
135
|
+
getConnectionState(): ConnectionState;
|
|
136
|
+
/** Number of active subscriptions */
|
|
137
|
+
getActiveSubscriptionCount(): number;
|
|
138
|
+
/** Dispose the manager and close the WebSocket connection */
|
|
139
|
+
dispose(): void;
|
|
140
|
+
private setConnectionState;
|
|
141
|
+
}
|
|
142
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realtime Manager - WebSocket subscription support
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
// Minimal type shims so this module compiles without graphql-ws
|
|
7
|
+
// installed. Consumers supply a WsClient via RealtimeConfig;
|
|
8
|
+
// the SDK itself never imports or requires graphql-ws.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// RealtimeManager
|
|
11
|
+
// ============================================================================
|
|
12
|
+
/**
|
|
13
|
+
* Manages a graphql-ws WebSocket client and multiplexes
|
|
14
|
+
* subscriptions over it. Created by OrmClient when `realtime`
|
|
15
|
+
* config is provided.
|
|
16
|
+
*/
|
|
17
|
+
export class RealtimeManager {
|
|
18
|
+
wsClient;
|
|
19
|
+
connectionState = 'disconnected';
|
|
20
|
+
stateListeners = new Set();
|
|
21
|
+
activeSubscriptions = 0;
|
|
22
|
+
constructor(config) {
|
|
23
|
+
this.wsClient = config.client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to a GraphQL subscription operation.
|
|
27
|
+
* Models call this with typed metadata and documents.
|
|
28
|
+
*/
|
|
29
|
+
subscribe(meta, document, variables, options) {
|
|
30
|
+
this.activeSubscriptions++;
|
|
31
|
+
let disposed = false;
|
|
32
|
+
const cleanup = this.wsClient.subscribe({ query: document, variables }, {
|
|
33
|
+
next: (result) => {
|
|
34
|
+
if (disposed)
|
|
35
|
+
return;
|
|
36
|
+
if (result.errors) {
|
|
37
|
+
options.onError?.(new Error(result.errors.map((e) => e.message).join('; ')));
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const payload = result.data?.[meta.fieldName];
|
|
41
|
+
if (!payload)
|
|
42
|
+
return;
|
|
43
|
+
const event = {
|
|
44
|
+
operation: payload.event ?? 'UPDATE',
|
|
45
|
+
data: payload[meta.dataFieldName] ?? null,
|
|
46
|
+
previousValues: payload.previousValues,
|
|
47
|
+
timestamp: payload.timestamp ?? new Date().toISOString(),
|
|
48
|
+
};
|
|
49
|
+
options.onEvent(event);
|
|
50
|
+
},
|
|
51
|
+
error: (err) => {
|
|
52
|
+
if (disposed)
|
|
53
|
+
return;
|
|
54
|
+
options.onError?.(err instanceof Error ? err : new Error(String(err)));
|
|
55
|
+
},
|
|
56
|
+
complete: () => {
|
|
57
|
+
if (disposed)
|
|
58
|
+
return;
|
|
59
|
+
options.onComplete?.();
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
return () => {
|
|
63
|
+
if (disposed)
|
|
64
|
+
return;
|
|
65
|
+
disposed = true;
|
|
66
|
+
this.activeSubscriptions--;
|
|
67
|
+
cleanup();
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/** Register a listener for connection state changes */
|
|
71
|
+
onConnectionStateChange(listener) {
|
|
72
|
+
this.stateListeners.add(listener);
|
|
73
|
+
return () => {
|
|
74
|
+
this.stateListeners.delete(listener);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** Get current connection state */
|
|
78
|
+
getConnectionState() {
|
|
79
|
+
return this.connectionState;
|
|
80
|
+
}
|
|
81
|
+
/** Number of active subscriptions */
|
|
82
|
+
getActiveSubscriptionCount() {
|
|
83
|
+
return this.activeSubscriptions;
|
|
84
|
+
}
|
|
85
|
+
/** Dispose the manager and close the WebSocket connection */
|
|
86
|
+
dispose() {
|
|
87
|
+
this.wsClient.dispose();
|
|
88
|
+
this.stateListeners.clear();
|
|
89
|
+
this.activeSubscriptions = 0;
|
|
90
|
+
this.setConnectionState('disconnected');
|
|
91
|
+
}
|
|
92
|
+
setConnectionState(state) {
|
|
93
|
+
if (this.connectionState === state)
|
|
94
|
+
return;
|
|
95
|
+
this.connectionState = state;
|
|
96
|
+
for (const listener of this.stateListeners) {
|
|
97
|
+
listener(state);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type utilities for select inference
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
export interface ConnectionResult<T> {
|
|
7
|
+
nodes: T[];
|
|
8
|
+
totalCount: number;
|
|
9
|
+
pageInfo: PageInfo;
|
|
10
|
+
}
|
|
11
|
+
export interface PageInfo {
|
|
12
|
+
hasNextPage: boolean;
|
|
13
|
+
hasPreviousPage: boolean;
|
|
14
|
+
startCursor?: string | null;
|
|
15
|
+
endCursor?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
|
+
select?: TSelect;
|
|
19
|
+
where?: TWhere;
|
|
20
|
+
orderBy?: TOrderBy[];
|
|
21
|
+
first?: number;
|
|
22
|
+
last?: number;
|
|
23
|
+
after?: string;
|
|
24
|
+
before?: string;
|
|
25
|
+
offset?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface FindFirstArgs<TSelect, TWhere, TOrderBy> {
|
|
28
|
+
select?: TSelect;
|
|
29
|
+
where?: TWhere;
|
|
30
|
+
orderBy?: TOrderBy[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateArgs<TSelect, TData> {
|
|
33
|
+
data: TData;
|
|
34
|
+
select?: TSelect;
|
|
35
|
+
}
|
|
36
|
+
export interface UpdateArgs<TSelect, TWhere, TData> {
|
|
37
|
+
where: TWhere;
|
|
38
|
+
data: TData;
|
|
39
|
+
select?: TSelect;
|
|
40
|
+
}
|
|
41
|
+
export type FindOneArgs<TSelect, TIdName extends string = 'id', TId = string> = {
|
|
42
|
+
select?: TSelect;
|
|
43
|
+
} & Record<TIdName, TId>;
|
|
44
|
+
export interface DeleteArgs<TWhere, TSelect = undefined> {
|
|
45
|
+
where: TWhere;
|
|
46
|
+
select?: TSelect;
|
|
47
|
+
}
|
|
48
|
+
export interface BulkInsertArgs<TSelect, TData, TOnConflict = unknown> {
|
|
49
|
+
data: TData[];
|
|
50
|
+
select?: TSelect;
|
|
51
|
+
onConflict?: TOnConflict;
|
|
52
|
+
}
|
|
53
|
+
export interface BulkUpsertArgs<TSelect, TData, TOnConflict = unknown> {
|
|
54
|
+
data: TData[];
|
|
55
|
+
select?: TSelect;
|
|
56
|
+
onConflict: TOnConflict;
|
|
57
|
+
}
|
|
58
|
+
export interface BulkUpdateArgs<TSelect, TWhere, TData> {
|
|
59
|
+
where: TWhere;
|
|
60
|
+
data: TData;
|
|
61
|
+
select?: TSelect;
|
|
62
|
+
}
|
|
63
|
+
export interface BulkDeleteArgs<TSelect, TWhere> {
|
|
64
|
+
where: TWhere;
|
|
65
|
+
select?: TSelect;
|
|
66
|
+
}
|
|
67
|
+
export interface BulkMutationResult<T> {
|
|
68
|
+
affectedCount: number;
|
|
69
|
+
returning: T[];
|
|
70
|
+
}
|
|
71
|
+
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
72
|
+
type DecrementDepth = {
|
|
73
|
+
0: 0;
|
|
74
|
+
1: 0;
|
|
75
|
+
2: 1;
|
|
76
|
+
3: 2;
|
|
77
|
+
4: 3;
|
|
78
|
+
5: 4;
|
|
79
|
+
6: 5;
|
|
80
|
+
7: 6;
|
|
81
|
+
8: 7;
|
|
82
|
+
9: 8;
|
|
83
|
+
10: 9;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Recursively validates select objects, rejecting unknown keys.
|
|
87
|
+
*
|
|
88
|
+
* NOTE: Depth is intentionally capped to avoid circular-instantiation issues
|
|
89
|
+
* in very large cyclic schemas.
|
|
90
|
+
*/
|
|
91
|
+
export type DeepExact<T, Shape, Depth extends DepthLevel = 10> = Depth extends 0 ? T extends Shape ? T : never : T extends Shape ? Exclude<keyof T, keyof Shape> extends never ? {
|
|
92
|
+
[K in keyof T]: K extends keyof Shape ? T[K] extends {
|
|
93
|
+
select: infer NS;
|
|
94
|
+
} ? Extract<Shape[K], {
|
|
95
|
+
select?: unknown;
|
|
96
|
+
}> extends {
|
|
97
|
+
select?: infer ShapeNS;
|
|
98
|
+
} ? DeepExact<Omit<T[K], 'select'> & {
|
|
99
|
+
select: DeepExact<NS, NonNullable<ShapeNS>, DecrementDepth[Depth]>;
|
|
100
|
+
}, Extract<Shape[K], {
|
|
101
|
+
select?: unknown;
|
|
102
|
+
}>, DecrementDepth[Depth]> : never : T[K] : never;
|
|
103
|
+
} : never : never;
|
|
104
|
+
/**
|
|
105
|
+
* Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`.
|
|
106
|
+
* Use this as an intersection in overloads:
|
|
107
|
+
* `{ select: S } & StrictSelect<S, XxxSelect>`.
|
|
108
|
+
*/
|
|
109
|
+
export type StrictSelect<S, Shape> = S extends DeepExact<S, Shape> ? {} : never;
|
|
110
|
+
/**
|
|
111
|
+
* Hook-optimized strict select variant.
|
|
112
|
+
*
|
|
113
|
+
* Uses a shallower recursion depth to keep editor autocomplete responsive
|
|
114
|
+
* in large schemas while still validating common nested-select mistakes.
|
|
115
|
+
*/
|
|
116
|
+
export type HookStrictSelect<S, Shape> = S extends DeepExact<S, Shape, 5> ? {} : never;
|
|
117
|
+
/**
|
|
118
|
+
* Infer result type from select configuration
|
|
119
|
+
*/
|
|
120
|
+
export type InferSelectResult<TEntity, TSelect> = TSelect extends undefined ? TEntity : {
|
|
121
|
+
[K in keyof TSelect as TSelect[K] extends false | undefined ? never : K]: TSelect[K] extends true ? K extends keyof TEntity ? TEntity[K] : never : TSelect[K] extends {
|
|
122
|
+
select: infer NestedSelect;
|
|
123
|
+
} ? K extends keyof TEntity ? NonNullable<TEntity[K]> extends ConnectionResult<infer NodeType> ? ConnectionResult<InferSelectResult<NodeType, NestedSelect>> : InferSelectResult<NonNullable<TEntity[K]>, NestedSelect> | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] : never;
|
|
124
|
+
};
|
|
125
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @generated by @constructive-io/graphql-codegen
|
|
8
8
|
*/
|
|
9
9
|
export * as admin from './admin';
|
|
10
|
+
export * as agent from './agent';
|
|
11
|
+
export * as api from './api';
|
|
10
12
|
export * as auth from './auth';
|
|
13
|
+
export * as modules from './modules';
|
|
11
14
|
export * as objects from './objects';
|
|
12
|
-
export * as
|
|
15
|
+
export * as usage from './usage';
|
package/esm/index.js
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @generated by @constructive-io/graphql-codegen
|
|
8
8
|
*/
|
|
9
9
|
export * as admin from './admin';
|
|
10
|
+
export * as agent from './agent';
|
|
11
|
+
export * as api from './api';
|
|
10
12
|
export * as auth from './auth';
|
|
13
|
+
export * as modules from './modules';
|
|
11
14
|
export * as objects from './objects';
|
|
12
|
-
export * as
|
|
15
|
+
export * as usage from './usage';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ORM Client - Runtime GraphQL executor
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
|
|
7
|
+
import type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe } from './realtime';
|
|
8
|
+
export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
|
|
9
|
+
export type { ConnectionState, ConnectionStateListener, RealtimeConfig, SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, SubscriptionOperation, Unsubscribe, WsClient, } from './realtime';
|
|
10
|
+
export { RealtimeManager } from './realtime';
|
|
11
|
+
/**
|
|
12
|
+
* Default adapter that uses fetch for HTTP requests.
|
|
13
|
+
*
|
|
14
|
+
* When no custom fetch is provided, uses @constructive-io/fetch which
|
|
15
|
+
* handles *.localhost DNS rewriting and Host header preservation in
|
|
16
|
+
* Node.js. Pass a custom fetch to override for test mocking or custom
|
|
17
|
+
* proxy/credentials.
|
|
18
|
+
*/
|
|
19
|
+
export declare class FetchAdapter implements GraphQLAdapter {
|
|
20
|
+
private endpoint;
|
|
21
|
+
private headers;
|
|
22
|
+
private fetchFn;
|
|
23
|
+
constructor(endpoint: string, headers?: Record<string, string>, fetchFn?: typeof globalThis.fetch);
|
|
24
|
+
execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
|
|
25
|
+
setHeaders(headers: Record<string, string>): void;
|
|
26
|
+
getEndpoint(): string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for creating an ORM client.
|
|
30
|
+
* Either provide endpoint (and optional headers/fetch) for HTTP requests,
|
|
31
|
+
* or provide a custom adapter for alternative execution strategies.
|
|
32
|
+
*/
|
|
33
|
+
export interface OrmClientConfig {
|
|
34
|
+
/** GraphQL endpoint URL (required if adapter not provided) */
|
|
35
|
+
endpoint?: string;
|
|
36
|
+
/** Default headers for HTTP requests (only used with endpoint) */
|
|
37
|
+
headers?: Record<string, string>;
|
|
38
|
+
/**
|
|
39
|
+
* Custom fetch implementation. Defaults to createFetch() from
|
|
40
|
+
* @constructive-io/graphql-query/runtime which handles *.localhost
|
|
41
|
+
* DNS and Host headers in Node.js. Pass your own for test mocking
|
|
42
|
+
* or custom proxy/credentials.
|
|
43
|
+
*/
|
|
44
|
+
fetch?: typeof globalThis.fetch;
|
|
45
|
+
/** Custom adapter for GraphQL execution (overrides endpoint/headers/fetch) */
|
|
46
|
+
adapter?: GraphQLAdapter;
|
|
47
|
+
/**
|
|
48
|
+
* Optional realtime (WebSocket) configuration.
|
|
49
|
+
* When provided, enables subscription methods on models.
|
|
50
|
+
* The WebSocket connection is created lazily on first subscribe().
|
|
51
|
+
*/
|
|
52
|
+
realtime?: RealtimeConfig;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Error thrown when GraphQL request fails
|
|
56
|
+
*/
|
|
57
|
+
export declare class GraphQLRequestError extends Error {
|
|
58
|
+
readonly errors: GraphQLError[];
|
|
59
|
+
readonly data: unknown;
|
|
60
|
+
constructor(errors: GraphQLError[], data?: unknown);
|
|
61
|
+
}
|
|
62
|
+
export declare class OrmClient {
|
|
63
|
+
private adapter;
|
|
64
|
+
private realtimeManager?;
|
|
65
|
+
constructor(config: OrmClientConfig);
|
|
66
|
+
execute<T>(document: string, variables?: Record<string, unknown>): Promise<QueryResult<T>>;
|
|
67
|
+
/**
|
|
68
|
+
* Subscribe to a GraphQL subscription operation.
|
|
69
|
+
* Used by generated model subscribe() methods.
|
|
70
|
+
* @throws Error if realtime is not configured
|
|
71
|
+
*/
|
|
72
|
+
subscribe<T>(meta: SubscriptionFieldMeta, document: string, variables: Record<string, unknown>, options: {
|
|
73
|
+
onEvent: (event: SubscriptionEvent<T>) => void;
|
|
74
|
+
onError?: (error: Error) => void;
|
|
75
|
+
onComplete?: () => void;
|
|
76
|
+
}): Unsubscribe;
|
|
77
|
+
/**
|
|
78
|
+
* Set headers for requests.
|
|
79
|
+
* Only works if the adapter supports headers.
|
|
80
|
+
*/
|
|
81
|
+
setHeaders(headers: Record<string, string>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Get the endpoint URL.
|
|
84
|
+
* Returns empty string if the adapter doesn't have an endpoint.
|
|
85
|
+
*/
|
|
86
|
+
getEndpoint(): string;
|
|
87
|
+
/** Get current WebSocket connection state */
|
|
88
|
+
getConnectionState(): ConnectionState;
|
|
89
|
+
/** Register a listener for WebSocket connection state changes */
|
|
90
|
+
onConnectionStateChange(listener: ConnectionStateListener): Unsubscribe;
|
|
91
|
+
/** Number of active subscriptions */
|
|
92
|
+
getActiveSubscriptionCount(): number;
|
|
93
|
+
/** Whether realtime is configured */
|
|
94
|
+
get isRealtimeEnabled(): boolean;
|
|
95
|
+
/** Dispose the realtime manager (close WebSocket) */
|
|
96
|
+
dispose(): void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { createFetch } from '@constructive-io/graphql-query/runtime';
|
|
2
|
+
import { RealtimeManager } from './realtime';
|
|
3
|
+
export { RealtimeManager } from './realtime';
|
|
4
|
+
/**
|
|
5
|
+
* Default adapter that uses fetch for HTTP requests.
|
|
6
|
+
*
|
|
7
|
+
* When no custom fetch is provided, uses @constructive-io/fetch which
|
|
8
|
+
* handles *.localhost DNS rewriting and Host header preservation in
|
|
9
|
+
* Node.js. Pass a custom fetch to override for test mocking or custom
|
|
10
|
+
* proxy/credentials.
|
|
11
|
+
*/
|
|
12
|
+
export class FetchAdapter {
|
|
13
|
+
endpoint;
|
|
14
|
+
headers;
|
|
15
|
+
fetchFn;
|
|
16
|
+
constructor(endpoint, headers, fetchFn) {
|
|
17
|
+
this.endpoint = endpoint;
|
|
18
|
+
this.headers = headers ?? {};
|
|
19
|
+
this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
|
|
20
|
+
}
|
|
21
|
+
async execute(document, variables) {
|
|
22
|
+
const response = await this.fetchFn(this.endpoint, {
|
|
23
|
+
method: 'POST',
|
|
24
|
+
headers: {
|
|
25
|
+
'Content-Type': 'application/json',
|
|
26
|
+
Accept: 'application/json',
|
|
27
|
+
...this.headers,
|
|
28
|
+
},
|
|
29
|
+
body: JSON.stringify({
|
|
30
|
+
query: document,
|
|
31
|
+
variables: variables ?? {},
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
if (!response.ok) {
|
|
35
|
+
return {
|
|
36
|
+
ok: false,
|
|
37
|
+
data: null,
|
|
38
|
+
errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const json = (await response.json());
|
|
42
|
+
if (json.errors && json.errors.length > 0) {
|
|
43
|
+
return {
|
|
44
|
+
ok: false,
|
|
45
|
+
data: null,
|
|
46
|
+
errors: json.errors,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
ok: true,
|
|
51
|
+
data: json.data,
|
|
52
|
+
errors: undefined,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
setHeaders(headers) {
|
|
56
|
+
this.headers = { ...this.headers, ...headers };
|
|
57
|
+
}
|
|
58
|
+
getEndpoint() {
|
|
59
|
+
return this.endpoint;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Error thrown when GraphQL request fails
|
|
64
|
+
*/
|
|
65
|
+
export class GraphQLRequestError extends Error {
|
|
66
|
+
errors;
|
|
67
|
+
data;
|
|
68
|
+
constructor(errors, data = null) {
|
|
69
|
+
const messages = errors.map((e) => e.message).join('; ');
|
|
70
|
+
super(`GraphQL Error: ${messages}`);
|
|
71
|
+
this.errors = errors;
|
|
72
|
+
this.data = data;
|
|
73
|
+
this.name = 'GraphQLRequestError';
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export class OrmClient {
|
|
77
|
+
adapter;
|
|
78
|
+
realtimeManager;
|
|
79
|
+
constructor(config) {
|
|
80
|
+
if (config.adapter) {
|
|
81
|
+
this.adapter = config.adapter;
|
|
82
|
+
}
|
|
83
|
+
else if (config.endpoint) {
|
|
84
|
+
this.adapter = new FetchAdapter(config.endpoint, config.headers, config.fetch);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
throw new Error('OrmClientConfig requires either an endpoint or a custom adapter');
|
|
88
|
+
}
|
|
89
|
+
if (config.realtime) {
|
|
90
|
+
this.realtimeManager = new RealtimeManager(config.realtime);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async execute(document, variables) {
|
|
94
|
+
return this.adapter.execute(document, variables);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Subscribe to a GraphQL subscription operation.
|
|
98
|
+
* Used by generated model subscribe() methods.
|
|
99
|
+
* @throws Error if realtime is not configured
|
|
100
|
+
*/
|
|
101
|
+
subscribe(meta, document, variables, options) {
|
|
102
|
+
if (!this.realtimeManager) {
|
|
103
|
+
throw new Error('Realtime not configured. Pass a `realtime` option to createClient() to enable subscriptions.');
|
|
104
|
+
}
|
|
105
|
+
return this.realtimeManager.subscribe(meta, document, variables, options);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Set headers for requests.
|
|
109
|
+
* Only works if the adapter supports headers.
|
|
110
|
+
*/
|
|
111
|
+
setHeaders(headers) {
|
|
112
|
+
if (this.adapter.setHeaders) {
|
|
113
|
+
this.adapter.setHeaders(headers);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Get the endpoint URL.
|
|
118
|
+
* Returns empty string if the adapter doesn't have an endpoint.
|
|
119
|
+
*/
|
|
120
|
+
getEndpoint() {
|
|
121
|
+
return this.adapter.getEndpoint?.() ?? '';
|
|
122
|
+
}
|
|
123
|
+
/** Get current WebSocket connection state */
|
|
124
|
+
getConnectionState() {
|
|
125
|
+
return this.realtimeManager?.getConnectionState() ?? 'disconnected';
|
|
126
|
+
}
|
|
127
|
+
/** Register a listener for WebSocket connection state changes */
|
|
128
|
+
onConnectionStateChange(listener) {
|
|
129
|
+
if (!this.realtimeManager)
|
|
130
|
+
return () => { };
|
|
131
|
+
return this.realtimeManager.onConnectionStateChange(listener);
|
|
132
|
+
}
|
|
133
|
+
/** Number of active subscriptions */
|
|
134
|
+
getActiveSubscriptionCount() {
|
|
135
|
+
return this.realtimeManager?.getActiveSubscriptionCount() ?? 0;
|
|
136
|
+
}
|
|
137
|
+
/** Whether realtime is configured */
|
|
138
|
+
get isRealtimeEnabled() {
|
|
139
|
+
return this.realtimeManager !== undefined;
|
|
140
|
+
}
|
|
141
|
+
/** Dispose the realtime manager (close WebSocket) */
|
|
142
|
+
dispose() {
|
|
143
|
+
this.realtimeManager?.dispose();
|
|
144
|
+
}
|
|
145
|
+
}
|