@constructive-sdk/cli 0.29.1 → 0.29.3
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/api/cli/commands/api.js +44 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.js +0 -22
- package/api/cli/commands/database-setting.js +44 -0
- package/api/cli/commands/domain.js +66 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/site.js +44 -0
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +0 -22
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view.js +0 -22
- package/api/orm/input-types.d.ts +144 -171
- package/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/auth/cli/commands/create-org-api-key.js +36 -0
- package/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/auth/cli/commands/create-org-principal.js +36 -0
- package/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/auth/cli/commands/delete-org-principal.js +36 -0
- package/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/auth/cli/commands/org-api-key-list.js +224 -0
- package/auth/cli/commands/principal-entity.d.ts +8 -0
- package/auth/cli/commands/principal-entity.js +282 -0
- package/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/auth/cli/commands/principal-scope-override.js +171 -0
- package/auth/cli/commands/principal.d.ts +8 -0
- package/auth/cli/commands/principal.js +171 -0
- package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/auth/cli/commands/revoke-org-api-key.js +36 -0
- package/auth/cli/commands.js +19 -3
- package/auth/cli/executor.d.ts +28 -4
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/compute/cli/commands/function-graph-execution.js +0 -22
- package/compute/cli/commands/function-graph.js +0 -20
- package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/compute/cli/commands/platform-namespace-event.js +510 -0
- package/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/compute/cli/commands/platform-namespace.js +436 -0
- package/compute/cli/commands/resource-event.d.ts +8 -0
- package/compute/cli/commands/resource-event.js +356 -0
- package/compute/cli/commands/resource.d.ts +8 -0
- package/compute/cli/commands/resource.js +520 -0
- package/compute/cli/commands.js +13 -5
- package/compute/cli/executor.d.ts +10 -6
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/esm/api/cli/commands/api.js +44 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.js +0 -22
- package/esm/api/cli/commands/database-setting.js +44 -0
- package/esm/api/cli/commands/domain.js +66 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/site.js +44 -0
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +0 -22
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-api-key.js +34 -0
- package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-principal.js +34 -0
- package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/delete-org-principal.js +34 -0
- package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/esm/auth/cli/commands/org-api-key-list.js +222 -0
- package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
- package/esm/auth/cli/commands/principal-entity.js +280 -0
- package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/esm/auth/cli/commands/principal-scope-override.js +169 -0
- package/esm/auth/cli/commands/principal.d.ts +8 -0
- package/esm/auth/cli/commands/principal.js +169 -0
- package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
- package/esm/auth/cli/commands.js +19 -3
- package/esm/auth/cli/executor.d.ts +28 -4
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/compute/cli/commands/function-graph-execution.js +0 -22
- package/esm/compute/cli/commands/function-graph.js +0 -20
- package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
- package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace.js +434 -0
- package/esm/compute/cli/commands/resource-event.d.ts +8 -0
- package/esm/compute/cli/commands/resource-event.js +354 -0
- package/esm/compute/cli/commands/resource.d.ts +8 -0
- package/esm/compute/cli/commands/resource.js +518 -0
- package/esm/compute/cli/commands.js +13 -5
- package/esm/compute/cli/executor.d.ts +10 -6
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/esm/modules/cli/commands/principal-auth-module.js +580 -0
- package/esm/modules/cli/commands/resource-module.d.ts +8 -0
- package/esm/modules/cli/commands/resource-module.js +602 -0
- package/esm/modules/cli/commands.js +9 -5
- package/esm/modules/cli/executor.d.ts +4 -2
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/modules/cli/commands/principal-auth-module.js +582 -0
- package/modules/cli/commands/resource-module.d.ts +8 -0
- package/modules/cli/commands/resource-module.js +604 -0
- package/modules/cli/commands.js +9 -5
- package/modules/cli/executor.d.ts +4 -2
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/package.json +5 -5
package/esm/auth/orm/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
+
import { PrincipalModel } from './models/principal';
|
|
3
|
+
import { PrincipalEntityModel } from './models/principalEntity';
|
|
4
|
+
import { PrincipalScopeOverrideModel } from './models/principalScopeOverride';
|
|
2
5
|
import { EmailModel } from './models/email';
|
|
3
6
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
4
7
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
@@ -7,6 +10,7 @@ import { AuditLogAuthModel } from './models/auditLogAuth';
|
|
|
7
10
|
import { IdentityProviderModel } from './models/identityProvider';
|
|
8
11
|
import { RoleTypeModel } from './models/roleType';
|
|
9
12
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
13
|
+
import { OrgApiKeyListModel } from './models/orgApiKeyList';
|
|
10
14
|
import { UserModel } from './models/user';
|
|
11
15
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
12
16
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
@@ -39,6 +43,9 @@ export { createMutationOperations } from './mutation';
|
|
|
39
43
|
* ```
|
|
40
44
|
*/
|
|
41
45
|
export declare function createClient(config: OrmClientConfig): {
|
|
46
|
+
principal: PrincipalModel;
|
|
47
|
+
principalEntity: PrincipalEntityModel;
|
|
48
|
+
principalScopeOverride: PrincipalScopeOverrideModel;
|
|
42
49
|
email: EmailModel;
|
|
43
50
|
phoneNumber: PhoneNumberModel;
|
|
44
51
|
cryptoAddress: CryptoAddressModel;
|
|
@@ -47,6 +54,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
47
54
|
identityProvider: IdentityProviderModel;
|
|
48
55
|
roleType: RoleTypeModel;
|
|
49
56
|
userConnectedAccount: UserConnectedAccountModel;
|
|
57
|
+
orgApiKeyList: OrgApiKeyListModel;
|
|
50
58
|
user: UserModel;
|
|
51
59
|
query: {
|
|
52
60
|
currentUserAgent: (options?: {
|
|
@@ -54,15 +62,15 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
54
62
|
}) => import("./query-builder").QueryBuilder<{
|
|
55
63
|
currentUserAgent: string | null;
|
|
56
64
|
}>;
|
|
57
|
-
|
|
65
|
+
currentUserId: (options?: {
|
|
58
66
|
select?: Record<string, unknown>;
|
|
59
67
|
}) => import("./query-builder").QueryBuilder<{
|
|
60
|
-
|
|
68
|
+
currentUserId: string | null;
|
|
61
69
|
}>;
|
|
62
|
-
|
|
70
|
+
currentIpAddress: (options?: {
|
|
63
71
|
select?: Record<string, unknown>;
|
|
64
72
|
}) => import("./query-builder").QueryBuilder<{
|
|
65
|
-
|
|
73
|
+
currentIpAddress: string | null;
|
|
66
74
|
}>;
|
|
67
75
|
requireStepUp: (args: import("./query").RequireStepUpVariables, options?: {
|
|
68
76
|
select?: Record<string, unknown>;
|
|
@@ -91,6 +99,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
91
99
|
} & import("./select-types").StrictSelect<S, import("./input-types").CheckPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
92
100
|
checkPassword: import("./select-types").InferSelectResult<import("./input-types").CheckPasswordPayload, S> | null;
|
|
93
101
|
}>;
|
|
102
|
+
deleteOrgPrincipal: <S extends import("./input-types").DeleteOrgPrincipalPayloadSelect>(args: import("./mutation").DeleteOrgPrincipalVariables, options: {
|
|
103
|
+
select: S;
|
|
104
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").DeleteOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
105
|
+
deleteOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").DeleteOrgPrincipalPayload, S> | null;
|
|
106
|
+
}>;
|
|
94
107
|
disconnectAccount: <S extends import("./input-types").DisconnectAccountPayloadSelect>(args: import("./mutation").DisconnectAccountVariables, options: {
|
|
95
108
|
select: S;
|
|
96
109
|
} & import("./select-types").StrictSelect<S, import("./input-types").DisconnectAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -121,6 +134,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
121
134
|
} & import("./select-types").StrictSelect<S, import("./input-types").ConfirmDeleteAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
122
135
|
confirmDeleteAccount: import("./select-types").InferSelectResult<import("./input-types").ConfirmDeleteAccountPayload, S> | null;
|
|
123
136
|
}>;
|
|
137
|
+
revokeOrgApiKey: <S extends import("./input-types").RevokeOrgApiKeyPayloadSelect>(args: import("./mutation").RevokeOrgApiKeyVariables, options: {
|
|
138
|
+
select: S;
|
|
139
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RevokeOrgApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
140
|
+
revokeOrgApiKey: import("./select-types").InferSelectResult<import("./input-types").RevokeOrgApiKeyPayload, S> | null;
|
|
141
|
+
}>;
|
|
124
142
|
setPassword: <S extends import("./input-types").SetPasswordPayloadSelect>(args: import("./mutation").SetPasswordVariables, options: {
|
|
125
143
|
select: S;
|
|
126
144
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -171,11 +189,21 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
171
189
|
} & import("./select-types").StrictSelect<S, import("./input-types").LinkIdentityPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
172
190
|
linkIdentity: import("./select-types").InferSelectResult<import("./input-types").LinkIdentityPayload, S> | null;
|
|
173
191
|
}>;
|
|
192
|
+
createOrgPrincipal: <S extends import("./input-types").CreateOrgPrincipalPayloadSelect>(args: import("./mutation").CreateOrgPrincipalVariables, options: {
|
|
193
|
+
select: S;
|
|
194
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
195
|
+
createOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").CreateOrgPrincipalPayload, S> | null;
|
|
196
|
+
}>;
|
|
174
197
|
extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
|
|
175
198
|
select: S;
|
|
176
199
|
} & import("./select-types").StrictSelect<S, import("./input-types").ExtendTokenExpiresPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
177
200
|
extendTokenExpires: import("./select-types").InferSelectResult<import("./input-types").ExtendTokenExpiresPayload, S> | null;
|
|
178
201
|
}>;
|
|
202
|
+
createOrgApiKey: <S extends import("./input-types").CreateOrgApiKeyPayloadSelect>(args: import("./mutation").CreateOrgApiKeyVariables, options: {
|
|
203
|
+
select: S;
|
|
204
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
205
|
+
createOrgApiKey: import("./select-types").InferSelectResult<import("./input-types").CreateOrgApiKeyPayload, S> | null;
|
|
206
|
+
}>;
|
|
179
207
|
createApiKey: <S extends import("./input-types").CreateApiKeyPayloadSelect>(args: import("./mutation").CreateApiKeyVariables, options: {
|
|
180
208
|
select: S;
|
|
181
209
|
} & import("./select-types").StrictSelect<S, import("./input-types").CreateApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/esm/auth/orm/index.js
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from './client';
|
|
7
|
+
import { PrincipalModel } from './models/principal';
|
|
8
|
+
import { PrincipalEntityModel } from './models/principalEntity';
|
|
9
|
+
import { PrincipalScopeOverrideModel } from './models/principalScopeOverride';
|
|
7
10
|
import { EmailModel } from './models/email';
|
|
8
11
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
9
12
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
@@ -12,6 +15,7 @@ import { AuditLogAuthModel } from './models/auditLogAuth';
|
|
|
12
15
|
import { IdentityProviderModel } from './models/identityProvider';
|
|
13
16
|
import { RoleTypeModel } from './models/roleType';
|
|
14
17
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
18
|
+
import { OrgApiKeyListModel } from './models/orgApiKeyList';
|
|
15
19
|
import { UserModel } from './models/user';
|
|
16
20
|
import { createQueryOperations } from './query';
|
|
17
21
|
import { createMutationOperations } from './mutation';
|
|
@@ -47,6 +51,9 @@ export { createMutationOperations } from './mutation';
|
|
|
47
51
|
export function createClient(config) {
|
|
48
52
|
const client = new OrmClient(config);
|
|
49
53
|
return {
|
|
54
|
+
principal: new PrincipalModel(client),
|
|
55
|
+
principalEntity: new PrincipalEntityModel(client),
|
|
56
|
+
principalScopeOverride: new PrincipalScopeOverrideModel(client),
|
|
50
57
|
email: new EmailModel(client),
|
|
51
58
|
phoneNumber: new PhoneNumberModel(client),
|
|
52
59
|
cryptoAddress: new CryptoAddressModel(client),
|
|
@@ -55,6 +62,7 @@ export function createClient(config) {
|
|
|
55
62
|
identityProvider: new IdentityProviderModel(client),
|
|
56
63
|
roleType: new RoleTypeModel(client),
|
|
57
64
|
userConnectedAccount: new UserConnectedAccountModel(client),
|
|
65
|
+
orgApiKeyList: new OrgApiKeyListModel(client),
|
|
58
66
|
user: new UserModel(client),
|
|
59
67
|
query: createQueryOperations(client),
|
|
60
68
|
mutation: createMutationOperations(client),
|