@constructive-io/sdk 0.29.0 → 0.29.2

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.
Files changed (89) hide show
  1. package/api/orm/input-types.d.ts +144 -171
  2. package/auth/orm/index.d.ts +32 -4
  3. package/auth/orm/index.js +8 -0
  4. package/auth/orm/input-types.d.ts +915 -145
  5. package/auth/orm/input-types.js +7 -0
  6. package/auth/orm/models/index.d.ts +4 -0
  7. package/auth/orm/models/index.js +9 -1
  8. package/auth/orm/models/orgApiKeyList.d.ts +36 -0
  9. package/auth/orm/models/orgApiKeyList.js +80 -0
  10. package/auth/orm/models/principal.d.ts +45 -0
  11. package/auth/orm/models/principal.js +93 -0
  12. package/auth/orm/models/principalEntity.d.ts +54 -0
  13. package/auth/orm/models/principalEntity.js +104 -0
  14. package/auth/orm/models/principalScopeOverride.d.ts +36 -0
  15. package/auth/orm/models/principalScopeOverride.js +80 -0
  16. package/auth/orm/mutation/index.d.ts +33 -1
  17. package/auth/orm/mutation/index.js +48 -0
  18. package/auth/orm/query/index.d.ts +4 -4
  19. package/auth/orm/query/index.js +7 -7
  20. package/compute/orm/index.d.ts +15 -7
  21. package/compute/orm/index.js +10 -2
  22. package/compute/orm/input-types.d.ts +1159 -221
  23. package/compute/orm/input-types.js +4 -0
  24. package/compute/orm/models/index.d.ts +5 -1
  25. package/compute/orm/models/index.js +11 -3
  26. package/compute/orm/models/platformNamespace.d.ts +54 -0
  27. package/compute/orm/models/platformNamespace.js +104 -0
  28. package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  29. package/compute/orm/models/platformNamespaceEvent.js +107 -0
  30. package/compute/orm/models/resource.d.ts +54 -0
  31. package/compute/orm/models/resource.js +104 -0
  32. package/compute/orm/models/resourceEvent.d.ts +56 -0
  33. package/compute/orm/models/resourceEvent.js +107 -0
  34. package/compute/orm/mutation/index.d.ts +9 -9
  35. package/compute/orm/mutation/index.js +12 -12
  36. package/esm/api/orm/input-types.d.ts +144 -171
  37. package/esm/auth/orm/index.d.ts +32 -4
  38. package/esm/auth/orm/index.js +8 -0
  39. package/esm/auth/orm/input-types.d.ts +915 -145
  40. package/esm/auth/orm/input-types.js +7 -0
  41. package/esm/auth/orm/models/index.d.ts +4 -0
  42. package/esm/auth/orm/models/index.js +4 -0
  43. package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
  44. package/esm/auth/orm/models/orgApiKeyList.js +76 -0
  45. package/esm/auth/orm/models/principal.d.ts +45 -0
  46. package/esm/auth/orm/models/principal.js +89 -0
  47. package/esm/auth/orm/models/principalEntity.d.ts +54 -0
  48. package/esm/auth/orm/models/principalEntity.js +100 -0
  49. package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
  50. package/esm/auth/orm/models/principalScopeOverride.js +76 -0
  51. package/esm/auth/orm/mutation/index.d.ts +33 -1
  52. package/esm/auth/orm/mutation/index.js +48 -0
  53. package/esm/auth/orm/query/index.d.ts +4 -4
  54. package/esm/auth/orm/query/index.js +7 -7
  55. package/esm/compute/orm/index.d.ts +15 -7
  56. package/esm/compute/orm/index.js +10 -2
  57. package/esm/compute/orm/input-types.d.ts +1159 -221
  58. package/esm/compute/orm/input-types.js +4 -0
  59. package/esm/compute/orm/models/index.d.ts +5 -1
  60. package/esm/compute/orm/models/index.js +5 -1
  61. package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
  62. package/esm/compute/orm/models/platformNamespace.js +100 -0
  63. package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  64. package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
  65. package/esm/compute/orm/models/resource.d.ts +54 -0
  66. package/esm/compute/orm/models/resource.js +100 -0
  67. package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
  68. package/esm/compute/orm/models/resourceEvent.js +103 -0
  69. package/esm/compute/orm/mutation/index.d.ts +9 -9
  70. package/esm/compute/orm/mutation/index.js +12 -12
  71. package/esm/modules/orm/index.d.ts +8 -4
  72. package/esm/modules/orm/index.js +8 -4
  73. package/esm/modules/orm/input-types.d.ts +868 -411
  74. package/esm/modules/orm/models/index.d.ts +4 -2
  75. package/esm/modules/orm/models/index.js +4 -2
  76. package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
  77. package/esm/modules/orm/models/principalAuthModule.js +100 -0
  78. package/esm/modules/orm/models/resourceModule.d.ts +54 -0
  79. package/esm/modules/orm/models/resourceModule.js +100 -0
  80. package/modules/orm/index.d.ts +8 -4
  81. package/modules/orm/index.js +8 -4
  82. package/modules/orm/input-types.d.ts +868 -411
  83. package/modules/orm/models/index.d.ts +4 -2
  84. package/modules/orm/models/index.js +10 -6
  85. package/modules/orm/models/principalAuthModule.d.ts +54 -0
  86. package/modules/orm/models/principalAuthModule.js +104 -0
  87. package/modules/orm/models/resourceModule.d.ts +54 -0
  88. package/modules/orm/models/resourceModule.js +104 -0
  89. package/package.json +4 -4
@@ -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
- currentIpAddress: (options?: {
65
+ currentUserId: (options?: {
58
66
  select?: Record<string, unknown>;
59
67
  }) => import("./query-builder").QueryBuilder<{
60
- currentIpAddress: string | null;
68
+ currentUserId: string | null;
61
69
  }>;
62
- currentUserId: (options?: {
70
+ currentIpAddress: (options?: {
63
71
  select?: Record<string, unknown>;
64
72
  }) => import("./query-builder").QueryBuilder<{
65
- currentUserId: string | null;
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<{
@@ -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),