openxiangda-devkit-core 2.0.0-alpha.12 → 2.0.0-alpha.121
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 +3 -8
- package/dist/app-spec.d.ts +228 -0
- package/dist/app-spec.d.ts.map +1 -0
- package/dist/app-spec.js +1443 -0
- package/dist/app-spec.js.map +1 -0
- package/dist/application-services.d.ts +996 -49
- package/dist/application-services.d.ts.map +1 -1
- package/dist/application-services.js +1348 -197
- package/dist/application-services.js.map +1 -1
- package/dist/application-ui-contract.d.ts +5 -0
- package/dist/application-ui-contract.d.ts.map +1 -0
- package/dist/application-ui-contract.js +149 -0
- package/dist/application-ui-contract.js.map +1 -0
- package/dist/backend-image-build.d.ts +23 -0
- package/dist/backend-image-build.d.ts.map +1 -0
- package/dist/backend-image-build.js +204 -0
- package/dist/backend-image-build.js.map +1 -0
- package/dist/command-process.d.ts +14 -0
- package/dist/command-process.d.ts.map +1 -0
- package/dist/command-process.js +51 -0
- package/dist/command-process.js.map +1 -0
- package/dist/command-registry.d.ts +123 -366
- package/dist/command-registry.d.ts.map +1 -1
- package/dist/command-registry.js +26 -266
- package/dist/command-registry.js.map +1 -1
- package/dist/compiler/ai-catalog.d.ts +4 -0
- package/dist/compiler/ai-catalog.d.ts.map +1 -0
- package/dist/compiler/ai-catalog.js +354 -0
- package/dist/compiler/ai-catalog.js.map +1 -0
- package/dist/compiler/application-model.d.ts +60 -0
- package/dist/compiler/application-model.d.ts.map +1 -0
- package/dist/compiler/application-model.js +141 -0
- package/dist/compiler/application-model.js.map +1 -0
- package/dist/compiler/authorization-transition.d.ts +7 -0
- package/dist/compiler/authorization-transition.d.ts.map +1 -0
- package/dist/compiler/authorization-transition.js +27 -0
- package/dist/compiler/authorization-transition.js.map +1 -0
- package/dist/compiler/bundle.d.ts +34 -0
- package/dist/compiler/bundle.d.ts.map +1 -0
- package/dist/compiler/bundle.js +1910 -0
- package/dist/compiler/bundle.js.map +1 -0
- package/dist/compiler/config.d.ts +882 -0
- package/dist/compiler/config.d.ts.map +1 -0
- package/dist/compiler/config.js +4118 -0
- package/dist/compiler/config.js.map +1 -0
- package/dist/compiler/data-policy-expression.d.ts +12 -0
- package/dist/compiler/data-policy-expression.d.ts.map +1 -0
- package/dist/compiler/data-policy-expression.js +43 -0
- package/dist/compiler/data-policy-expression.js.map +1 -0
- package/dist/compiler/field-codec.d.ts +14 -0
- package/dist/compiler/field-codec.d.ts.map +1 -0
- package/dist/compiler/field-codec.js +131 -0
- package/dist/compiler/field-codec.js.map +1 -0
- package/dist/compiler/field-physical-plan.d.ts +10 -0
- package/dist/compiler/field-physical-plan.d.ts.map +1 -0
- package/dist/compiler/field-physical-plan.js +66 -0
- package/dist/compiler/field-physical-plan.js.map +1 -0
- package/dist/compiler/field-policy-path.d.ts +10 -0
- package/dist/compiler/field-policy-path.d.ts.map +1 -0
- package/dist/compiler/field-policy-path.js +283 -0
- package/dist/compiler/field-policy-path.js.map +1 -0
- package/dist/compiler/field-query-plan.d.ts +13 -0
- package/dist/compiler/field-query-plan.d.ts.map +1 -0
- package/dist/compiler/field-query-plan.js +122 -0
- package/dist/compiler/field-query-plan.js.map +1 -0
- package/dist/compiler/field-surface.d.ts +15 -0
- package/dist/compiler/field-surface.d.ts.map +1 -0
- package/dist/compiler/field-surface.js +51 -0
- package/dist/compiler/field-surface.js.map +1 -0
- package/dist/compiler/index.d.ts +6 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +6 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/package-compiler.d.ts +22 -0
- package/dist/compiler/package-compiler.d.ts.map +1 -0
- package/dist/compiler/package-compiler.js +257 -0
- package/dist/compiler/package-compiler.js.map +1 -0
- package/dist/compiler/permission-review.d.ts +139 -0
- package/dist/compiler/permission-review.d.ts.map +1 -0
- package/dist/compiler/permission-review.js +131 -0
- package/dist/compiler/permission-review.js.map +1 -0
- package/dist/compiler/schema-composition.d.ts +21 -0
- package/dist/compiler/schema-composition.d.ts.map +1 -0
- package/dist/compiler/schema-composition.js +193 -0
- package/dist/compiler/schema-composition.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/configuration-preflight.d.ts +7 -0
- package/dist/configuration-preflight.d.ts.map +1 -0
- package/dist/configuration-preflight.js +13 -0
- package/dist/configuration-preflight.js.map +1 -0
- package/dist/connected-development.d.ts +62 -0
- package/dist/connected-development.d.ts.map +1 -0
- package/dist/connected-development.js +393 -0
- package/dist/connected-development.js.map +1 -0
- package/dist/control-plane-client.d.ts +353 -123
- package/dist/control-plane-client.d.ts.map +1 -1
- package/dist/control-plane-client.js +420 -141
- package/dist/control-plane-client.js.map +1 -1
- package/dist/delivery-cache.d.ts +34 -0
- package/dist/delivery-cache.d.ts.map +1 -0
- package/dist/delivery-cache.js +186 -0
- package/dist/delivery-cache.js.map +1 -0
- package/dist/delivery-source.d.ts +17 -0
- package/dist/delivery-source.d.ts.map +1 -0
- package/dist/delivery-source.js +85 -0
- package/dist/delivery-source.js.map +1 -0
- package/dist/deployment-observer.d.ts +14 -0
- package/dist/deployment-observer.d.ts.map +1 -0
- package/dist/deployment-observer.js +68 -0
- package/dist/deployment-observer.js.map +1 -0
- package/dist/deployment.d.ts +55 -3
- package/dist/deployment.d.ts.map +1 -1
- package/dist/deployment.js +182 -21
- package/dist/deployment.js.map +1 -1
- package/dist/design-readiness.d.ts +24 -0
- package/dist/design-readiness.d.ts.map +1 -0
- package/dist/design-readiness.js +102 -0
- package/dist/design-readiness.js.map +1 -0
- package/dist/developer-errors.d.ts +11 -0
- package/dist/developer-errors.d.ts.map +1 -0
- package/dist/developer-errors.js +16 -0
- package/dist/developer-errors.js.map +1 -0
- package/dist/developer-operations.d.ts +188 -0
- package/dist/developer-operations.d.ts.map +1 -0
- package/dist/developer-operations.js +58 -0
- package/dist/developer-operations.js.map +1 -0
- package/dist/development-lifecycle.d.ts +75 -0
- package/dist/development-lifecycle.d.ts.map +1 -0
- package/dist/development-lifecycle.js +189 -0
- package/dist/development-lifecycle.js.map +1 -0
- package/dist/documentation.d.ts +111 -0
- package/dist/documentation.d.ts.map +1 -0
- package/dist/documentation.js +112 -0
- package/dist/documentation.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/workflow.d.ts +83 -0
- package/dist/internal/workflow.d.ts.map +1 -0
- package/dist/internal/workflow.js +419 -0
- package/dist/internal/workflow.js.map +1 -0
- package/dist/nest-injection-contract.d.ts +4 -0
- package/dist/nest-injection-contract.d.ts.map +1 -0
- package/dist/nest-injection-contract.js +116 -0
- package/dist/nest-injection-contract.js.map +1 -0
- package/dist/operation-progress.d.ts +26 -0
- package/dist/operation-progress.d.ts.map +1 -0
- package/dist/operation-progress.js +92 -0
- package/dist/operation-progress.js.map +1 -0
- package/dist/optional-backend.d.ts +14 -0
- package/dist/optional-backend.d.ts.map +1 -0
- package/dist/optional-backend.js +145 -0
- package/dist/optional-backend.js.map +1 -0
- package/dist/package-compiler.d.ts +1 -1
- package/dist/package-compiler.d.ts.map +1 -1
- package/dist/package-compiler.js +1 -1
- package/dist/package-compiler.js.map +1 -1
- package/dist/session.d.ts +149 -4
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +362 -23
- package/dist/session.js.map +1 -1
- package/dist/testing.d.ts +77 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +213 -0
- package/dist/testing.js.map +1 -0
- package/dist/toolchain-capsule.d.ts +45 -0
- package/dist/toolchain-capsule.d.ts.map +1 -0
- package/dist/toolchain-capsule.js +165 -0
- package/dist/toolchain-capsule.js.map +1 -0
- package/dist/workspace-loader.d.ts +1 -1
- package/dist/workspace-loader.d.ts.map +1 -1
- package/dist/workspace-loader.js +35 -3
- package/dist/workspace-loader.js.map +1 -1
- package/dist/workspace-operation.d.ts +3 -0
- package/dist/workspace-operation.d.ts.map +1 -0
- package/dist/workspace-operation.js +45 -0
- package/dist/workspace-operation.js.map +1 -0
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +37 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +16 -4
- package/templates/backend/Dockerfile +20 -0
- package/templates/backend/package.json +27 -0
- package/templates/backend/src/app.module.ts +23 -0
- package/templates/backend/src/main.ts +5 -0
- package/templates/backend/tsconfig.json +9 -0
|
@@ -1,20 +1,114 @@
|
|
|
1
|
-
import { type AppPackage, type ApplicationSecret, type ApplicationSecretAuditEvent, type AppVersion, type Diagnostic, type
|
|
1
|
+
import { type AppPackage, type ApplicationEnvironmentList, type ApplicationSecret, type ApplicationSecretAuditEvent, type AppVersion, type ProductionPromotionPreflight, type Diagnostic, type NativeRelationshipGrant, type NativeRelationshipGrantPage, type NativeAuthorizationProjectionHealth, type NativeAuthorizationProjectionMutationResult, type NativeAuthorizationManagementCatalog, type NativeAuthorizationMutationReceipt, type NativeRoleManagementAction, type NativeRoleManagementGrantMutationResult, type NativeRoleManagementGrantPage, type NativeRoleMembershipMutationResult, type NativeRoleMembershipPage, type NativeScopeGrant, type NativeSuperAdminGrant, type NativeSuperAdminGrantPage, type DeploymentKind, type DeploymentEnvironment, type DeploymentRun, type EnvironmentHead, type EventDelivery, type EventSubscription, type DateTrigger, type DataPage, type DataAggregatePage, type DataAggregateQuery, type DataAuditPage, type DataFileRef, type DataFileUploadPlan, type DataQuery, type DataRecord, type DataResource, type DataTransactionRequest, type DataTransactionResult, type DirectoryEntryKind, type DirectoryResolveRequest, type DirectorySearchResult, type PlatformCapabilities, type ConfigurationValidationRequest, type ConfigurationValidationResult, type OAuthApplicationPrincipal, type OAuthAuditEvent, type OAuthClient, type RuntimeOAuthCredentialStatus, type ProvisionedApplication, type ApplicationRole, type RelationshipGrant, type RelationshipGrantSubjectType, type TimerSubscription, type RoleAssignment, type WorkflowBinding, type WorkflowNodeConfigurations, type ApplicationAdministrationContext, type WorkflowCommand, type WorkflowCommandInput, type WorkflowCommandResult, type WorkflowDefinition, type WorkflowDelegation, type WorkflowDelegationTarget, type WorkflowAssigneeProvider, type WorkflowSurface, type WorkflowWorkCenterItem, type WorkflowTimeline } from "openxiangda-contracts/browser";
|
|
2
2
|
type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
3
3
|
export interface ControlPlaneClientOptions {
|
|
4
4
|
baseUrl: string;
|
|
5
5
|
token?: string;
|
|
6
|
+
tokenProvider?: {
|
|
7
|
+
getAccessToken(input?: {
|
|
8
|
+
forceRefresh?: boolean;
|
|
9
|
+
}): Promise<string>;
|
|
10
|
+
};
|
|
6
11
|
credentials?: RequestCredentials;
|
|
7
12
|
fetch?: FetchLike;
|
|
8
13
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
14
|
+
export interface ConnectedDevelopmentSessionStatus {
|
|
15
|
+
schemaVersion: "openxiangda.connected-dev-session/v2";
|
|
16
|
+
sessionId: string;
|
|
17
|
+
expiresAt: string;
|
|
18
|
+
expiresIn: number;
|
|
19
|
+
mode: "published-resources" | "manifest-overlay";
|
|
20
|
+
manifestOverlay: boolean;
|
|
21
|
+
additiveSchemaSync: boolean;
|
|
22
|
+
overlay?: {
|
|
23
|
+
resources: number;
|
|
24
|
+
addedFields: Array<{
|
|
25
|
+
resourceCode: string;
|
|
26
|
+
fieldCode: string;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
environment: {
|
|
30
|
+
id: string;
|
|
31
|
+
key: DeploymentEnvironment;
|
|
32
|
+
activeAppVersionId: string;
|
|
33
|
+
headRevision: number;
|
|
34
|
+
};
|
|
35
|
+
principal: {
|
|
36
|
+
type: "developer";
|
|
37
|
+
userId: string;
|
|
38
|
+
roleCodes: string[];
|
|
39
|
+
isAppSuperAdmin: boolean;
|
|
40
|
+
capabilityCodes: string[];
|
|
41
|
+
};
|
|
42
|
+
manifestDigest: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface ConnectedDevelopmentSessionGrant extends ConnectedDevelopmentSessionStatus {
|
|
45
|
+
/** Returned once by create; never persist or print it. */
|
|
46
|
+
sessionToken: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ChinaDivisionListItem {
|
|
49
|
+
adcode: string;
|
|
50
|
+
citycode?: string;
|
|
51
|
+
name: string;
|
|
52
|
+
level?: string;
|
|
53
|
+
center?: string;
|
|
54
|
+
parentAdcode?: string;
|
|
55
|
+
hasChildren: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface PerspectiveRequest {
|
|
58
|
+
perspectiveCode?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface NativeAuthorizationPageInput {
|
|
61
|
+
environmentKey?: DeploymentEnvironment;
|
|
62
|
+
status?: "active" | "revoked" | "expired";
|
|
63
|
+
limit?: number;
|
|
64
|
+
offset?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface CreateNativeRoleMembershipInput {
|
|
67
|
+
environmentKey: DeploymentEnvironment;
|
|
68
|
+
operationId: string;
|
|
69
|
+
userId: string;
|
|
70
|
+
roleCode: string;
|
|
71
|
+
scopeGrants?: NativeScopeGrant[];
|
|
72
|
+
validFrom?: string | null;
|
|
73
|
+
validTo?: string | null;
|
|
74
|
+
reason: string;
|
|
11
75
|
}
|
|
12
|
-
export interface
|
|
13
|
-
|
|
76
|
+
export interface UpdateNativeRoleMembershipInput {
|
|
77
|
+
environmentKey: DeploymentEnvironment;
|
|
78
|
+
operationId: string;
|
|
79
|
+
expectedRevision: number;
|
|
80
|
+
scopeGrants?: NativeScopeGrant[];
|
|
81
|
+
validFrom?: string | null;
|
|
82
|
+
validTo?: string | null;
|
|
83
|
+
reason: string;
|
|
84
|
+
}
|
|
85
|
+
export interface NativeRelationshipGrantFilter extends NativeAuthorizationPageInput {
|
|
86
|
+
subjectType?: "user" | "role_membership";
|
|
87
|
+
subjectKey?: string;
|
|
88
|
+
relationCode?: string;
|
|
89
|
+
resourceCode?: string;
|
|
90
|
+
resourceId?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface NativeScopeValuePage {
|
|
93
|
+
schemaVersion: string;
|
|
94
|
+
environment: {
|
|
95
|
+
id: string;
|
|
96
|
+
key: DeploymentEnvironment;
|
|
97
|
+
headRevision: number;
|
|
98
|
+
authzRevisionId: string;
|
|
99
|
+
scopeDataVersion: string;
|
|
100
|
+
};
|
|
101
|
+
dimensionCode: string;
|
|
102
|
+
items: Array<{
|
|
103
|
+
id: string;
|
|
104
|
+
label: string;
|
|
105
|
+
}>;
|
|
106
|
+
limit: number;
|
|
107
|
+
offset: number;
|
|
14
108
|
}
|
|
15
109
|
export type ApplicationApiQuery = Record<string, string | number | boolean | null | undefined>;
|
|
16
110
|
export interface ApplicationApiRequest extends RequestInit {
|
|
17
|
-
|
|
111
|
+
perspectiveCode?: string;
|
|
18
112
|
query?: ApplicationApiQuery;
|
|
19
113
|
}
|
|
20
114
|
export interface CreateOAuthClientInput {
|
|
@@ -64,16 +158,6 @@ export interface RotateApplicationSecretInput {
|
|
|
64
158
|
export type ApplicationApiJsonRequest<TBody = unknown> = Omit<ApplicationApiRequest, "body"> & {
|
|
65
159
|
body?: TBody;
|
|
66
160
|
};
|
|
67
|
-
export interface RoleSessionBootstrapResult {
|
|
68
|
-
state: "active" | "selection_required" | "unassigned";
|
|
69
|
-
assignments: RoleAssignment[];
|
|
70
|
-
roleSession: RoleSession | null;
|
|
71
|
-
principal: Principal | null;
|
|
72
|
-
}
|
|
73
|
-
export interface PrincipalResult {
|
|
74
|
-
roleSession: RoleSession;
|
|
75
|
-
principal: Principal;
|
|
76
|
-
}
|
|
77
161
|
export interface RelationshipGrantFilter {
|
|
78
162
|
relationCode?: string;
|
|
79
163
|
subjectType?: RelationshipGrantSubjectType;
|
|
@@ -107,7 +191,7 @@ export interface CreateRoleAssignmentInput {
|
|
|
107
191
|
export interface CreateDeploymentInput {
|
|
108
192
|
appCode: string;
|
|
109
193
|
environmentId?: string;
|
|
110
|
-
environmentKind?:
|
|
194
|
+
environmentKind?: DeploymentEnvironment;
|
|
111
195
|
kind?: DeploymentKind;
|
|
112
196
|
packageDigest: string;
|
|
113
197
|
package: AppPackage;
|
|
@@ -123,7 +207,11 @@ export interface DeployExistingVersionInput {
|
|
|
123
207
|
appCode: string;
|
|
124
208
|
appVersionId: string;
|
|
125
209
|
environmentId?: string;
|
|
126
|
-
environmentKind?:
|
|
210
|
+
environmentKind?: DeploymentEnvironment;
|
|
211
|
+
idempotencyKey: string;
|
|
212
|
+
requestId?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface ChangeEnvironmentRuntimeStateInput {
|
|
127
215
|
idempotencyKey: string;
|
|
128
216
|
requestId?: string;
|
|
129
217
|
}
|
|
@@ -135,57 +223,69 @@ export interface UploadArtifactInput {
|
|
|
135
223
|
content: BlobPart;
|
|
136
224
|
metadata?: Record<string, unknown>;
|
|
137
225
|
}
|
|
138
|
-
export interface
|
|
139
|
-
|
|
140
|
-
code: string;
|
|
141
|
-
description?: string;
|
|
142
|
-
eventTypes: string[];
|
|
143
|
-
subjectFilters?: EventSubscription["subjectFilters"];
|
|
144
|
-
environmentKey?: string;
|
|
145
|
-
endpointPath: string;
|
|
146
|
-
timeoutMs?: number;
|
|
147
|
-
maxAttempts?: number;
|
|
148
|
-
initialBackoffMs?: number;
|
|
149
|
-
maxBackoffMs?: number;
|
|
150
|
-
}
|
|
151
|
-
export interface CreateTimerSubscriptionInput {
|
|
152
|
-
appCode: string;
|
|
153
|
-
code: string;
|
|
154
|
-
eventType: string;
|
|
155
|
-
cronExpression: string;
|
|
156
|
-
timezone?: string;
|
|
157
|
-
payload?: Record<string, unknown>;
|
|
158
|
-
environmentKey?: string;
|
|
159
|
-
}
|
|
160
|
-
export interface PrepareWorkflowStartInput {
|
|
161
|
-
appCode: string;
|
|
162
|
-
workflowCode: string;
|
|
163
|
-
environmentKey?: string;
|
|
164
|
-
businessKey: string;
|
|
165
|
-
dataRef: Record<string, unknown>;
|
|
166
|
-
facts: Record<string, unknown>;
|
|
167
|
-
answers?: Record<string, unknown>;
|
|
168
|
-
roleSessionId: string;
|
|
169
|
-
}
|
|
170
|
-
export interface WorkflowTaskCommandInput {
|
|
171
|
-
expectedTaskVersion: number;
|
|
172
|
-
expectedInstanceVersion: number;
|
|
173
|
-
idempotencyKey: string;
|
|
174
|
-
input?: Record<string, unknown>;
|
|
226
|
+
export interface WorkflowTaskCommandInput extends WorkflowCommandInput {
|
|
227
|
+
csrfToken: string;
|
|
175
228
|
}
|
|
176
229
|
export declare class ControlPlaneError extends Error {
|
|
177
230
|
readonly status: number;
|
|
178
231
|
readonly code: string;
|
|
179
232
|
readonly data?: unknown | undefined;
|
|
180
|
-
|
|
233
|
+
readonly remote?: {
|
|
234
|
+
retryable?: boolean;
|
|
235
|
+
remediation?: string;
|
|
236
|
+
requestId?: string;
|
|
237
|
+
path?: string;
|
|
238
|
+
field?: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
constructor(status: number, code: string, message: string, data?: unknown | undefined, remote?: {
|
|
241
|
+
retryable?: boolean;
|
|
242
|
+
remediation?: string;
|
|
243
|
+
requestId?: string;
|
|
244
|
+
path?: string;
|
|
245
|
+
field?: string;
|
|
246
|
+
} | undefined);
|
|
181
247
|
}
|
|
182
248
|
export declare class OpenXiangdaControlPlaneClient {
|
|
183
249
|
private readonly options;
|
|
184
250
|
private readonly baseUrl;
|
|
185
251
|
private readonly fetch;
|
|
252
|
+
private readonly artifactUploadFetch;
|
|
186
253
|
constructor(options: ControlPlaneClientOptions);
|
|
187
254
|
capabilities(): Promise<PlatformCapabilities>;
|
|
255
|
+
validateConfigurationCompatibility(appCode: string, capabilities: PlatformCapabilities, input: ConfigurationValidationRequest): Promise<ConfigurationValidationResult>;
|
|
188
256
|
provisionApplication(input: ProvisionApplicationInput): Promise<ProvisionedApplication>;
|
|
257
|
+
createConnectedDevelopmentSession(appCode: string, input: {
|
|
258
|
+
environmentKey: DeploymentEnvironment;
|
|
259
|
+
manifestDigest?: string;
|
|
260
|
+
configuration?: unknown;
|
|
261
|
+
}): Promise<ConnectedDevelopmentSessionGrant>;
|
|
262
|
+
preparePreproductionAcceptanceIdentities(appCode: string, input: {
|
|
263
|
+
environmentKey: "preproduction";
|
|
264
|
+
redirectUri?: string;
|
|
265
|
+
expiresInMinutes?: number;
|
|
266
|
+
actors: Array<{
|
|
267
|
+
key: string;
|
|
268
|
+
name?: string;
|
|
269
|
+
roleCodes: string[];
|
|
270
|
+
departmentIds?: string[];
|
|
271
|
+
}>;
|
|
272
|
+
}): Promise<{
|
|
273
|
+
schemaVersion: "openxiangda.preproduction-acceptance-identities/v2";
|
|
274
|
+
appCode: string;
|
|
275
|
+
environmentKey: "preproduction";
|
|
276
|
+
expiresAt: string;
|
|
277
|
+
actors: Array<{
|
|
278
|
+
key: string;
|
|
279
|
+
userId: string;
|
|
280
|
+
roleCodes: string[];
|
|
281
|
+
expiresAt: string;
|
|
282
|
+
loginUrl: string;
|
|
283
|
+
loginUrlExpiresAt: string;
|
|
284
|
+
}>;
|
|
285
|
+
}>;
|
|
286
|
+
connectedDevelopmentSession(appCode: string, sessionToken: string): Promise<ConnectedDevelopmentSessionStatus>;
|
|
287
|
+
refreshConnectedDevelopmentSession(appCode: string, sessionToken: string): Promise<ConnectedDevelopmentSessionStatus>;
|
|
288
|
+
revokeConnectedDevelopmentSession(appCode: string, sessionToken: string): Promise<void>;
|
|
189
289
|
oauthClients(appCode: string): Promise<{
|
|
190
290
|
items: OAuthClient[];
|
|
191
291
|
total: number;
|
|
@@ -218,6 +318,12 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
218
318
|
}): Promise<OAuthTokenResponse>;
|
|
219
319
|
applicationApiResponse(appCode: string, environmentKey: string, runtimePath: string, input: ApplicationApiRequest): Promise<Response>;
|
|
220
320
|
applicationApiJson<TResponse = unknown, TBody = unknown>(appCode: string, environmentKey: string, runtimePath: string, input: ApplicationApiJsonRequest<TBody>): Promise<TResponse>;
|
|
321
|
+
artifactStatus(appCode: string, digest: string): Promise<{
|
|
322
|
+
digest: string;
|
|
323
|
+
kind: string;
|
|
324
|
+
contentType: string;
|
|
325
|
+
sizeBytes: number;
|
|
326
|
+
} | null>;
|
|
221
327
|
uploadArtifact(input: UploadArtifactInput): Promise<Record<string, unknown>>;
|
|
222
328
|
createDeployment(input: CreateDeploymentInput): Promise<DeploymentRun>;
|
|
223
329
|
deployment(appCode: string, deploymentId: string): Promise<DeploymentRun>;
|
|
@@ -225,15 +331,21 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
225
331
|
items: DeploymentRun[];
|
|
226
332
|
total: number;
|
|
227
333
|
}>;
|
|
334
|
+
applicationEnvironments(appCode: string): Promise<ApplicationEnvironmentList>;
|
|
335
|
+
startEnvironment(appCode: string, environmentKey: DeploymentEnvironment, input: ChangeEnvironmentRuntimeStateInput): Promise<DeploymentRun>;
|
|
336
|
+
stopEnvironment(appCode: string, environmentKey: DeploymentEnvironment, input: ChangeEnvironmentRuntimeStateInput): Promise<DeploymentRun>;
|
|
228
337
|
retryDeployment(appCode: string, deploymentId: string): Promise<DeploymentRun>;
|
|
229
338
|
cancelDeployment(appCode: string, deploymentId: string): Promise<DeploymentRun>;
|
|
230
339
|
promote(input: DeployExistingVersionInput): Promise<DeploymentRun>;
|
|
340
|
+
redeploy(input: DeployExistingVersionInput): Promise<DeploymentRun>;
|
|
231
341
|
rollback(input: DeployExistingVersionInput): Promise<DeploymentRun>;
|
|
232
342
|
appVersions(appCode: string, limit?: number): Promise<{
|
|
233
343
|
items: AppVersion[];
|
|
234
344
|
total: number;
|
|
235
345
|
}>;
|
|
346
|
+
productionPromotionPreflight(appCode: string, sourceDeploymentId: string): Promise<ProductionPromotionPreflight>;
|
|
236
347
|
environmentHead(appCode: string, environmentKey: string): Promise<EnvironmentHead>;
|
|
348
|
+
private changeEnvironmentRuntimeState;
|
|
237
349
|
applicationSecrets(appCode: string, environmentKey: string): Promise<{
|
|
238
350
|
items: ApplicationSecret[];
|
|
239
351
|
total: number;
|
|
@@ -249,7 +361,6 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
249
361
|
applicationSecretAuditEvents(appCode: string, environmentKey: string, name: string, limit?: number): Promise<{
|
|
250
362
|
items: ApplicationSecretAuditEvent[];
|
|
251
363
|
}>;
|
|
252
|
-
createEventSubscription(input: CreateEventSubscriptionInput): Promise<EventSubscription>;
|
|
253
364
|
eventSubscriptions(appCode: string): Promise<{
|
|
254
365
|
items: EventSubscription[];
|
|
255
366
|
}>;
|
|
@@ -257,16 +368,10 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
257
368
|
expectedRevision: number;
|
|
258
369
|
status: "active" | "paused";
|
|
259
370
|
}): Promise<EventSubscription>;
|
|
260
|
-
rotateEventSubscriptionSecret(appCode: string, subscriptionId: string, input: {
|
|
261
|
-
expectedRevision: number;
|
|
262
|
-
idempotencyKey: string;
|
|
263
|
-
gracePeriodSeconds?: number;
|
|
264
|
-
}): Promise<EventSubscription>;
|
|
265
371
|
eventDeliveries(appCode: string, limit?: number): Promise<{
|
|
266
372
|
items: EventDelivery[];
|
|
267
373
|
}>;
|
|
268
374
|
replayEventDelivery(appCode: string, deliveryId: string, idempotencyKey?: string): Promise<EventDelivery>;
|
|
269
|
-
createTimerSubscription(input: CreateTimerSubscriptionInput): Promise<TimerSubscription>;
|
|
270
375
|
timerSubscriptions(appCode: string): Promise<{
|
|
271
376
|
items: TimerSubscription[];
|
|
272
377
|
}>;
|
|
@@ -274,6 +379,13 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
274
379
|
expectedRevision: number;
|
|
275
380
|
status: "active" | "paused";
|
|
276
381
|
}): Promise<TimerSubscription>;
|
|
382
|
+
dateTriggers(appCode: string): Promise<{
|
|
383
|
+
items: DateTrigger[];
|
|
384
|
+
}>;
|
|
385
|
+
setDateTriggerStatus(appCode: string, triggerId: string, input: {
|
|
386
|
+
expectedRevision: number;
|
|
387
|
+
status: "active" | "paused";
|
|
388
|
+
}): Promise<DateTrigger>;
|
|
277
389
|
registerWorkflowDefinition(appCode: string, version: number, definition: WorkflowDefinition): Promise<Record<string, unknown>>;
|
|
278
390
|
registerWorkflowBinding(appCode: string, version: number, binding: WorkflowBinding): Promise<Record<string, unknown>>;
|
|
279
391
|
applyWorkflowAssigneeProvider(appCode: string, input: {
|
|
@@ -298,61 +410,171 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
298
410
|
bindingVersion: number;
|
|
299
411
|
expectedRevision?: number;
|
|
300
412
|
}): Promise<Record<string, unknown>>;
|
|
301
|
-
prepareWorkflowStart(input: PrepareWorkflowStartInput): Promise<WorkflowPreparation>;
|
|
302
|
-
startWorkflow(appCode: string, input: {
|
|
303
|
-
preparationToken: string;
|
|
304
|
-
idempotencyKey: string;
|
|
305
|
-
roleSessionId: string;
|
|
306
|
-
}): Promise<WorkflowInstance>;
|
|
307
413
|
createWorkflowDelegation(appCode: string, input: {
|
|
414
|
+
environmentKey?: string;
|
|
308
415
|
workflowCode?: string;
|
|
416
|
+
delegatorRoleSubjectKey: string;
|
|
309
417
|
delegateUserId: string;
|
|
310
|
-
|
|
418
|
+
delegateRoleSubjectKey: string;
|
|
311
419
|
validFrom: string;
|
|
312
420
|
validTo: string;
|
|
313
421
|
reason: string;
|
|
314
|
-
}
|
|
315
|
-
workflowDelegationTargets(appCode: string, userId: string,
|
|
422
|
+
}): Promise<WorkflowDelegation>;
|
|
423
|
+
workflowDelegationTargets(appCode: string, userId: string, environmentKey?: string): Promise<{
|
|
316
424
|
items: WorkflowDelegationTarget[];
|
|
317
425
|
total: number;
|
|
318
426
|
}>;
|
|
319
|
-
workflowDelegations(appCode: string,
|
|
427
|
+
workflowDelegations(appCode: string, input?: {
|
|
320
428
|
all?: boolean;
|
|
429
|
+
environmentKey?: string;
|
|
321
430
|
}): Promise<{
|
|
322
431
|
items: WorkflowDelegation[];
|
|
323
432
|
total: number;
|
|
324
433
|
}>;
|
|
325
|
-
revokeWorkflowDelegation(appCode: string, delegationId: string,
|
|
326
|
-
workflowTaskSurface(appCode: string, taskId: string,
|
|
327
|
-
workflowInstanceSurface(appCode: string, instanceId: string,
|
|
328
|
-
executeWorkflowTaskCommand(appCode: string, taskId: string, command: WorkflowCommand, input: WorkflowTaskCommandInput
|
|
329
|
-
executeWorkflowInstanceCommand(appCode: string, instanceId: string, command: "withdraw" | "terminate", input:
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}, request: RoleSessionRequest): Promise<Record<string, unknown>>;
|
|
334
|
-
workflowAssignmentExplain(appCode: string, taskId: string, request: RoleSessionRequest): Promise<Record<string, unknown>>;
|
|
335
|
-
workflowTimeline(appCode: string, instanceId: string, request: RoleSessionRequest): Promise<{
|
|
336
|
-
items: Array<Record<string, unknown>>;
|
|
337
|
-
}>;
|
|
338
|
-
workflowWorkCenter(appCode: string, request: RoleSessionRequest, input?: {
|
|
434
|
+
revokeWorkflowDelegation(appCode: string, delegationId: string, environmentKey?: string): Promise<WorkflowDelegation>;
|
|
435
|
+
workflowTaskSurface(appCode: string, taskId: string, csrfToken: string): Promise<WorkflowSurface>;
|
|
436
|
+
workflowInstanceSurface(appCode: string, instanceId: string, csrfToken: string): Promise<WorkflowSurface>;
|
|
437
|
+
executeWorkflowTaskCommand(appCode: string, taskId: string, command: WorkflowCommand, input: WorkflowTaskCommandInput): Promise<WorkflowCommandResult>;
|
|
438
|
+
executeWorkflowInstanceCommand(appCode: string, instanceId: string, command: "withdraw" | "terminate", input: WorkflowTaskCommandInput): Promise<WorkflowCommandResult>;
|
|
439
|
+
workflowAssignmentExplain(appCode: string, taskId: string): Promise<Record<string, unknown>>;
|
|
440
|
+
workflowTimeline(appCode: string, instanceId: string): Promise<WorkflowTimeline>;
|
|
441
|
+
workflowWorkCenter(appCode: string, input?: {
|
|
339
442
|
status?: "pending" | "completed";
|
|
340
443
|
limit?: number;
|
|
444
|
+
environmentKey?: string;
|
|
341
445
|
}): Promise<{
|
|
342
|
-
items:
|
|
446
|
+
items: WorkflowWorkCenterItem[];
|
|
343
447
|
}>;
|
|
344
|
-
workflowKernelInstance(appCode: string, instanceId: string, request: RoleSessionRequest): Promise<WorkflowKernelDescriptor>;
|
|
345
|
-
workflowKernelWorkCenter(appCode: string, request: RoleSessionRequest, input?: {
|
|
346
|
-
category?: "pending" | "completed" | "created";
|
|
347
|
-
limit?: number;
|
|
348
|
-
}): Promise<WorkflowKernelWorkCenter>;
|
|
349
448
|
workflowDiagnostics(appCode: string, limit?: number): Promise<{
|
|
350
449
|
items: Diagnostic[];
|
|
351
450
|
total: number;
|
|
352
451
|
}>;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
452
|
+
applicationAdministrationContext(appCode: string, environmentKey: DeploymentEnvironment): Promise<ApplicationAdministrationContext>;
|
|
453
|
+
workflowNodeConfigurations(appCode: string, workflowCode: string, environmentKey: DeploymentEnvironment): Promise<WorkflowNodeConfigurations>;
|
|
454
|
+
nativeAuthorizationCatalog(appCode: string, input?: {
|
|
455
|
+
environmentKey?: DeploymentEnvironment;
|
|
456
|
+
}): Promise<NativeAuthorizationManagementCatalog>;
|
|
457
|
+
nativeScopeValues(appCode: string, input: {
|
|
458
|
+
environmentKey?: DeploymentEnvironment;
|
|
459
|
+
dimensionCode: string;
|
|
460
|
+
keyword?: string;
|
|
461
|
+
limit?: number;
|
|
462
|
+
offset?: number;
|
|
463
|
+
}): Promise<NativeScopeValuePage>;
|
|
464
|
+
nativeRoleMemberships(appCode: string, input?: NativeAuthorizationPageInput & {
|
|
465
|
+
userId?: string;
|
|
466
|
+
roleCode?: string;
|
|
467
|
+
keyword?: string;
|
|
468
|
+
}): Promise<NativeRoleMembershipPage>;
|
|
469
|
+
createNativeRoleMembership(appCode: string, input: CreateNativeRoleMembershipInput): Promise<NativeRoleMembershipMutationResult>;
|
|
470
|
+
updateNativeRoleMembership(appCode: string, membershipId: string, input: UpdateNativeRoleMembershipInput): Promise<NativeRoleMembershipMutationResult>;
|
|
471
|
+
revokeNativeRoleMembership(appCode: string, membershipId: string, input: {
|
|
472
|
+
environmentKey: DeploymentEnvironment;
|
|
473
|
+
operationId: string;
|
|
474
|
+
expectedRevision: number;
|
|
475
|
+
reason: string;
|
|
476
|
+
}): Promise<NativeRoleMembershipMutationResult>;
|
|
477
|
+
nativeRoleManagementGrants(appCode: string, input?: {
|
|
478
|
+
environmentKey?: DeploymentEnvironment;
|
|
479
|
+
status?: "active" | "revoked";
|
|
480
|
+
subjectRoleCode?: string;
|
|
481
|
+
limit?: number;
|
|
482
|
+
offset?: number;
|
|
483
|
+
}): Promise<NativeRoleManagementGrantPage>;
|
|
484
|
+
createNativeRoleManagementGrant(appCode: string, input: {
|
|
485
|
+
environmentKey: DeploymentEnvironment;
|
|
486
|
+
operationId: string;
|
|
487
|
+
reason: string;
|
|
488
|
+
subjectRoleCode: string;
|
|
489
|
+
manageAllRoles: boolean;
|
|
490
|
+
managedRoleCodes: string[];
|
|
491
|
+
actions: NativeRoleManagementAction[];
|
|
492
|
+
}): Promise<NativeRoleManagementGrantMutationResult>;
|
|
493
|
+
updateNativeRoleManagementGrant(appCode: string, grantId: string, input: {
|
|
494
|
+
environmentKey: DeploymentEnvironment;
|
|
495
|
+
operationId: string;
|
|
496
|
+
reason: string;
|
|
497
|
+
expectedRevision: number;
|
|
498
|
+
subjectRoleCode: string;
|
|
499
|
+
manageAllRoles: boolean;
|
|
500
|
+
managedRoleCodes: string[];
|
|
501
|
+
actions: NativeRoleManagementAction[];
|
|
502
|
+
}): Promise<NativeRoleManagementGrantMutationResult>;
|
|
503
|
+
revokeNativeRoleManagementGrant(appCode: string, grantId: string, input: {
|
|
504
|
+
environmentKey: DeploymentEnvironment;
|
|
505
|
+
operationId: string;
|
|
506
|
+
reason: string;
|
|
507
|
+
expectedRevision: number;
|
|
508
|
+
}): Promise<NativeRoleManagementGrantMutationResult>;
|
|
509
|
+
nativeAuthorizationMutationReceipt(appCode: string, operationId: string): Promise<NativeAuthorizationMutationReceipt>;
|
|
510
|
+
nativeSuperAdmins(appCode: string, input?: {
|
|
511
|
+
environmentKey?: DeploymentEnvironment;
|
|
512
|
+
status?: "active" | "revoked";
|
|
513
|
+
userId?: string;
|
|
514
|
+
keyword?: string;
|
|
515
|
+
limit?: number;
|
|
516
|
+
offset?: number;
|
|
517
|
+
}): Promise<NativeSuperAdminGrantPage>;
|
|
518
|
+
grantNativeSuperAdmin(appCode: string, input: {
|
|
519
|
+
environmentKey: DeploymentEnvironment;
|
|
520
|
+
operationId: string;
|
|
521
|
+
userId: string;
|
|
522
|
+
}): Promise<{
|
|
523
|
+
grant: NativeSuperAdminGrant;
|
|
524
|
+
environmentSubjectVersions: Array<Record<string, unknown>>;
|
|
525
|
+
revokedSessionCount: number;
|
|
526
|
+
}>;
|
|
527
|
+
revokeNativeSuperAdmin(appCode: string, grantId: string, input: {
|
|
528
|
+
environmentKey: DeploymentEnvironment;
|
|
529
|
+
operationId: string;
|
|
530
|
+
expectedRevision: number;
|
|
531
|
+
}): Promise<{
|
|
532
|
+
grant: NativeSuperAdminGrant;
|
|
533
|
+
environmentSubjectVersions: Array<Record<string, unknown>>;
|
|
534
|
+
revokedSessionCount: number;
|
|
535
|
+
}>;
|
|
536
|
+
nativeRelationshipGrants(appCode: string, input?: NativeRelationshipGrantFilter): Promise<NativeRelationshipGrantPage>;
|
|
537
|
+
createNativeRelationshipGrant(appCode: string, input: {
|
|
538
|
+
environmentKey: DeploymentEnvironment;
|
|
539
|
+
operationId: string;
|
|
540
|
+
subjectType: "user" | "role_membership";
|
|
541
|
+
subjectKey: string;
|
|
542
|
+
relationCode: string;
|
|
543
|
+
resourceCode: string;
|
|
544
|
+
resourceId: string;
|
|
545
|
+
operations?: string[];
|
|
546
|
+
sourceCode?: string;
|
|
547
|
+
validFrom?: string | null;
|
|
548
|
+
validTo?: string | null;
|
|
549
|
+
}): Promise<{
|
|
550
|
+
grant: NativeRelationshipGrant;
|
|
551
|
+
}>;
|
|
552
|
+
updateNativeRelationshipGrant(appCode: string, grantId: string, input: {
|
|
553
|
+
environmentKey: DeploymentEnvironment;
|
|
554
|
+
operationId: string;
|
|
555
|
+
expectedRevision: number;
|
|
556
|
+
operations?: string[];
|
|
557
|
+
validFrom?: string | null;
|
|
558
|
+
validTo?: string | null;
|
|
559
|
+
}): Promise<{
|
|
560
|
+
grant: NativeRelationshipGrant;
|
|
561
|
+
}>;
|
|
562
|
+
revokeNativeRelationshipGrant(appCode: string, grantId: string, input: {
|
|
563
|
+
environmentKey: DeploymentEnvironment;
|
|
564
|
+
operationId: string;
|
|
565
|
+
expectedRevision: number;
|
|
566
|
+
}): Promise<{
|
|
567
|
+
grant: NativeRelationshipGrant;
|
|
568
|
+
}>;
|
|
569
|
+
nativeAuthorizationProjectionHealth(appCode: string, environmentKey?: DeploymentEnvironment): Promise<NativeAuthorizationProjectionHealth>;
|
|
570
|
+
rebuildNativeAuthorizationProjections(appCode: string, input: {
|
|
571
|
+
environmentKey: DeploymentEnvironment;
|
|
572
|
+
operationId: string;
|
|
573
|
+
}): Promise<NativeAuthorizationProjectionMutationResult>;
|
|
574
|
+
recoverNativeAuthorizationProjection(appCode: string, jobId: string, input: {
|
|
575
|
+
environmentKey: DeploymentEnvironment;
|
|
576
|
+
operationId: string;
|
|
577
|
+
}): Promise<NativeAuthorizationProjectionMutationResult>;
|
|
356
578
|
myRoleAssignments(appCode: string): Promise<{
|
|
357
579
|
items: RoleAssignment[];
|
|
358
580
|
total: number;
|
|
@@ -369,22 +591,21 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
369
591
|
validTo?: string | null;
|
|
370
592
|
}): Promise<RoleAssignment>;
|
|
371
593
|
revokeRoleAssignment(appCode: string, assignmentId: string, expectedRevision: number): Promise<RoleAssignment>;
|
|
372
|
-
explainAuthorization(appCode: string, input: {
|
|
373
|
-
capability: string;
|
|
374
|
-
roleSessionId: string;
|
|
375
|
-
dataPolicyCode?: string;
|
|
376
|
-
operation?: string;
|
|
377
|
-
data?: Record<string, unknown>;
|
|
378
|
-
}): Promise<AuthorizationDecision>;
|
|
379
|
-
explainAuthorizations(appCode: string, input: {
|
|
380
|
-
roleSessionId: string;
|
|
381
|
-
requests: AuthorizationExplainRequest[];
|
|
382
|
-
}): Promise<AuthorizationBatchResult>;
|
|
383
594
|
searchDirectoryEntries(appCode: string, kind: DirectoryEntryKind, input: {
|
|
384
595
|
keyword: string;
|
|
385
596
|
limit?: number;
|
|
386
|
-
}
|
|
387
|
-
|
|
597
|
+
}): Promise<DirectorySearchResult>;
|
|
598
|
+
browseDepartmentEntries(appCode: string, input: {
|
|
599
|
+
parentId?: string;
|
|
600
|
+
offset?: number;
|
|
601
|
+
limit?: number;
|
|
602
|
+
}): Promise<DirectorySearchResult>;
|
|
603
|
+
browseDepartmentUserEntries(appCode: string, input: {
|
|
604
|
+
departmentId: string;
|
|
605
|
+
page?: number;
|
|
606
|
+
limit?: number;
|
|
607
|
+
}): Promise<DirectorySearchResult>;
|
|
608
|
+
resolveDirectoryEntries(appCode: string, input: DirectoryResolveRequest): Promise<DirectorySearchResult>;
|
|
388
609
|
applyDataResource(resource: DataResource, input?: {
|
|
389
610
|
expectedRevision?: number;
|
|
390
611
|
}): Promise<DataResource>;
|
|
@@ -400,47 +621,56 @@ export declare class OpenXiangdaControlPlaneClient {
|
|
|
400
621
|
validTo?: string | null;
|
|
401
622
|
}): Promise<RelationshipGrant>;
|
|
402
623
|
revokeRelationshipGrant(appCode: string, grantId: string, expectedRevision: number): Promise<RelationshipGrant>;
|
|
403
|
-
queryData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, query: DataQuery, request?:
|
|
404
|
-
|
|
405
|
-
|
|
624
|
+
queryData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, query: DataQuery, request?: PerspectiveRequest): Promise<DataPage<T>>;
|
|
625
|
+
chinaDivisions(parentAdcode?: string): Promise<ChinaDivisionListItem[]>;
|
|
626
|
+
getData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, id: string, request?: PerspectiveRequest): Promise<DataRecord<T>>;
|
|
627
|
+
aggregateData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, query: DataAggregateQuery, request?: PerspectiveRequest): Promise<DataAggregatePage<T>>;
|
|
406
628
|
dataAudit(appCode: string, resourceCode: string, id: string, input?: {
|
|
407
629
|
limit?: number;
|
|
408
630
|
offset?: number;
|
|
409
|
-
}, request?:
|
|
631
|
+
}, request?: PerspectiveRequest): Promise<DataAuditPage>;
|
|
410
632
|
initiateDataFileUpload(appCode: string, resourceCode: string, input: {
|
|
411
633
|
fieldCode: string;
|
|
412
634
|
fileName: string;
|
|
413
635
|
fileSize: number;
|
|
414
636
|
contentType?: string;
|
|
415
637
|
recordId?: string;
|
|
416
|
-
}, request?:
|
|
417
|
-
completeDataFileUpload(appCode: string, resourceCode: string, fileId: string, request?:
|
|
418
|
-
|
|
638
|
+
}, request?: PerspectiveRequest): Promise<DataFileUploadPlan>;
|
|
639
|
+
completeDataFileUpload(appCode: string, resourceCode: string, fileId: string, request?: PerspectiveRequest): Promise<DataFileRef>;
|
|
640
|
+
deleteUnreferencedDataFile(appCode: string, resourceCode: string, fileId: string, request?: PerspectiveRequest): Promise<{
|
|
419
641
|
id: string;
|
|
420
642
|
deleted: boolean;
|
|
421
643
|
}>;
|
|
422
|
-
dataFileContent(appCode: string, resourceCode: string, fileId: string, request?:
|
|
423
|
-
createData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, data: Record<string, unknown>, request?:
|
|
644
|
+
dataFileContent(appCode: string, resourceCode: string, fileId: string, request?: PerspectiveRequest): Promise<Response>;
|
|
645
|
+
createData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, data: Record<string, unknown>, request?: PerspectiveRequest): Promise<DataRecord<T>>;
|
|
424
646
|
updateData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, id: string, input: {
|
|
425
647
|
expectedRevision: number;
|
|
426
648
|
data: Record<string, unknown>;
|
|
427
|
-
}, request?:
|
|
428
|
-
deleteData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, id: string, expectedRevision: number, request?:
|
|
429
|
-
transactData(appCode: string, transaction: DataTransactionRequest, request?:
|
|
649
|
+
}, request?: PerspectiveRequest): Promise<DataRecord<T>>;
|
|
650
|
+
deleteData<T extends Record<string, unknown>>(appCode: string, resourceCode: string, id: string, expectedRevision: number, request?: PerspectiveRequest): Promise<DataRecord<T>>;
|
|
651
|
+
transactData(appCode: string, transaction: DataTransactionRequest, request?: PerspectiveRequest): Promise<DataTransactionResult>;
|
|
430
652
|
private dataPath;
|
|
431
653
|
private applicationApiPath;
|
|
432
654
|
private deployExistingVersion;
|
|
433
655
|
private authzPath;
|
|
656
|
+
private nativeAuthzPath;
|
|
657
|
+
private nativeAuthzManagementPath;
|
|
658
|
+
private query;
|
|
434
659
|
private directoryPath;
|
|
435
660
|
private oauthPath;
|
|
436
661
|
private applicationSecretsPath;
|
|
437
662
|
private eventsPath;
|
|
663
|
+
private connectedDevelopmentSessionsPath;
|
|
664
|
+
private connectedDevelopmentSessionHeaders;
|
|
438
665
|
private workflowPath;
|
|
439
|
-
private
|
|
440
|
-
private
|
|
666
|
+
private administrationPath;
|
|
667
|
+
private perspectiveHeaders;
|
|
441
668
|
private basicCredentials;
|
|
442
669
|
private json;
|
|
443
670
|
private request;
|
|
671
|
+
private requestOnce;
|
|
672
|
+
private isUnauthorized;
|
|
673
|
+
private accessToken;
|
|
444
674
|
}
|
|
445
675
|
export {};
|
|
446
676
|
//# sourceMappingURL=control-plane-client.d.ts.map
|