@arcforges/api-client 1.0.0-ci.19.1 → 1.0.0-ci.201.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/NOTICE +57 -5
- package/README.md +9 -2
- package/build-identity.json +192 -0
- package/contracts.binpb +0 -0
- package/dist/gen/http.d.ts +10 -0
- package/dist/gen/http.js +13 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +20 -2
- package/dist/shapes/gen/AndroidUpdate.d.ts +41 -0
- package/dist/shapes/gen/AndroidUpdate.js +620 -0
- package/dist/shapes/gen/CatalogIndex.d.ts +49 -0
- package/dist/shapes/gen/CatalogIndex.js +703 -0
- package/dist/shapes/gen/CatalogRevocations.d.ts +46 -0
- package/dist/shapes/gen/CatalogRevocations.js +647 -0
- package/dist/shapes/gen/DeclarativePanel.d.ts +154 -0
- package/dist/shapes/gen/DeclarativePanel.js +2988 -0
- package/dist/shapes/gen/ExtensionManifest.d.ts +278 -0
- package/dist/shapes/gen/ExtensionManifest.js +3974 -0
- package/dist/shapes/gen/ExtensionWorkflow.d.ts +151 -0
- package/dist/shapes/gen/ExtensionWorkflow.js +2251 -0
- package/dist/shapes/gen/PackageInventory.d.ts +24 -0
- package/dist/shapes/gen/PackageInventory.js +327 -0
- package/dist/shapes/gen/PartReceipt.d.ts +21 -0
- package/dist/shapes/gen/PartReceipt.js +290 -0
- package/dist/shapes/gen/PolicyBody.d.ts +269 -0
- package/dist/shapes/gen/PolicyBody.js +4188 -0
- package/dist/shapes/gen/RealmDescriptor.d.ts +39 -0
- package/dist/shapes/gen/RealmDescriptor.js +627 -0
- package/package.json +15 -7
- package/sbom.cdx.json +17 -17
- package/schemas/public/http/v1/inventory.schema.json +49 -0
- package/schemas/public/http/v1/manifest.schema.json +1459 -0
- package/schemas/public/http/v1/panel.schema.json +963 -0
- package/schemas/public/http/v1/policy-body.schema.json +1376 -0
- package/schemas/public/http/v1/schema.json +30 -0
- package/schemas/public/http/v1/signed-formats.schema.json +748 -0
- package/schemas/public/http/v1/workflow.schema.json +715 -0
- package/schemas/public/proto/arcforges/events/v1/events.proto +14 -0
- package/schemas/public/proto/arcforges/foundation/v1/foundation.proto +373 -0
- package/schemas/public/proto/arcforges/hello/v1/hello.proto +23 -0
- package/schemas/public/proto/arcforges/publicapi/v1/content.proto +767 -0
- package/schemas/public/proto/arcforges/publicapi/v1/descriptors.proto +27 -0
- package/source.json +35 -10
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export interface ExtensionWorkflow {
|
|
2
|
+
schemaVersion: string;
|
|
3
|
+
inputs: WorkflowInput[];
|
|
4
|
+
nodes: WorkflowNode[];
|
|
5
|
+
outputs: WorkflowOutput[];
|
|
6
|
+
limits: WorkflowLimits;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkflowInput {
|
|
9
|
+
name: string;
|
|
10
|
+
schemaId: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface WorkflowLimits {
|
|
14
|
+
maxExpandedSteps: number;
|
|
15
|
+
maxForEachNesting: number;
|
|
16
|
+
maxPredicateDepth: number;
|
|
17
|
+
maxPredicateNodes: number;
|
|
18
|
+
}
|
|
19
|
+
export type WorkflowNode = WorkflowConstantNode | WorkflowInputNode | WorkflowSelectNode | WorkflowCapabilityNode | WorkflowConditionNode | WorkflowForeachNode | WorkflowOutputNode;
|
|
20
|
+
export interface WorkflowCapabilityNode {
|
|
21
|
+
id: string;
|
|
22
|
+
kind: string;
|
|
23
|
+
operationId: string;
|
|
24
|
+
typedArguments: WorkflowArgument[];
|
|
25
|
+
dependencies: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface WorkflowArgument {
|
|
28
|
+
name: string;
|
|
29
|
+
value: WorkflowOperand;
|
|
30
|
+
}
|
|
31
|
+
export interface WorkflowConditionNode {
|
|
32
|
+
id: string;
|
|
33
|
+
kind: string;
|
|
34
|
+
predicate: WorkflowPredicate;
|
|
35
|
+
thenNodes: string[];
|
|
36
|
+
elseNodes: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface WorkflowConstantNode {
|
|
39
|
+
id: string;
|
|
40
|
+
kind: string;
|
|
41
|
+
typedValue: WorkflowTypedValue;
|
|
42
|
+
}
|
|
43
|
+
export interface WorkflowForeachNode {
|
|
44
|
+
id: string;
|
|
45
|
+
kind: string;
|
|
46
|
+
inputArray: WorkflowValueRef;
|
|
47
|
+
maxItems: number;
|
|
48
|
+
body: WorkflowNode[];
|
|
49
|
+
}
|
|
50
|
+
export interface WorkflowInputNode {
|
|
51
|
+
id: string;
|
|
52
|
+
kind: string;
|
|
53
|
+
name: string;
|
|
54
|
+
}
|
|
55
|
+
export type WorkflowOperand = WorkflowLiteralOperand | WorkflowReferenceOperand;
|
|
56
|
+
export interface WorkflowLiteralOperand {
|
|
57
|
+
kind: string;
|
|
58
|
+
value: WorkflowTypedValue;
|
|
59
|
+
}
|
|
60
|
+
export interface WorkflowOutput {
|
|
61
|
+
name: string;
|
|
62
|
+
schemaId: string;
|
|
63
|
+
valueRef: WorkflowValueRef;
|
|
64
|
+
}
|
|
65
|
+
export interface WorkflowOutputNode {
|
|
66
|
+
id: string;
|
|
67
|
+
kind: string;
|
|
68
|
+
valueRef: WorkflowValueRef;
|
|
69
|
+
}
|
|
70
|
+
export type WorkflowPredicate = WorkflowComparison | WorkflowExists | WorkflowAll | WorkflowAny;
|
|
71
|
+
export interface WorkflowAll {
|
|
72
|
+
operator: string;
|
|
73
|
+
predicates: WorkflowPredicate[];
|
|
74
|
+
}
|
|
75
|
+
export interface WorkflowAny {
|
|
76
|
+
operator: string;
|
|
77
|
+
predicates: WorkflowPredicate[];
|
|
78
|
+
}
|
|
79
|
+
export interface WorkflowComparison {
|
|
80
|
+
operator: string;
|
|
81
|
+
left: WorkflowOperand;
|
|
82
|
+
right: WorkflowOperand;
|
|
83
|
+
}
|
|
84
|
+
export interface WorkflowExists {
|
|
85
|
+
operator: string;
|
|
86
|
+
valueRef: WorkflowValueRef;
|
|
87
|
+
}
|
|
88
|
+
export interface WorkflowReferenceOperand {
|
|
89
|
+
kind: string;
|
|
90
|
+
valueRef: WorkflowValueRef;
|
|
91
|
+
}
|
|
92
|
+
export interface WorkflowSelectNode {
|
|
93
|
+
id: string;
|
|
94
|
+
kind: string;
|
|
95
|
+
source: WorkflowValueRef;
|
|
96
|
+
recordField: string;
|
|
97
|
+
}
|
|
98
|
+
export type WorkflowTypedValue = WorkflowTextValue | WorkflowBoolValue | WorkflowInt64Value | WorkflowDecimalValue | WorkflowEnumValue | WorkflowResourceRefValue;
|
|
99
|
+
export interface WorkflowBoolValue {
|
|
100
|
+
kind: string;
|
|
101
|
+
value: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface WorkflowDecimalValue {
|
|
104
|
+
kind: string;
|
|
105
|
+
value: string;
|
|
106
|
+
}
|
|
107
|
+
export interface WorkflowEnumValue {
|
|
108
|
+
kind: string;
|
|
109
|
+
value: string;
|
|
110
|
+
}
|
|
111
|
+
export interface WorkflowInt64Value {
|
|
112
|
+
kind: string;
|
|
113
|
+
value: string;
|
|
114
|
+
}
|
|
115
|
+
export interface WorkflowResourceRefValue {
|
|
116
|
+
kind: string;
|
|
117
|
+
value: WorkflowResourceRef;
|
|
118
|
+
}
|
|
119
|
+
export interface WorkflowResourceRef {
|
|
120
|
+
realmId: string;
|
|
121
|
+
workspaceId?: string;
|
|
122
|
+
ownerAppId: string;
|
|
123
|
+
resourceKind: string;
|
|
124
|
+
resourceId: string;
|
|
125
|
+
displayHint?: string;
|
|
126
|
+
availability: string;
|
|
127
|
+
holdingDeviceId?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface WorkflowTextValue {
|
|
130
|
+
kind: string;
|
|
131
|
+
value: string;
|
|
132
|
+
}
|
|
133
|
+
export interface WorkflowValueRef {
|
|
134
|
+
nodeId: string;
|
|
135
|
+
field: string;
|
|
136
|
+
}
|
|
137
|
+
export declare function isExtensionWorkflow(value: unknown): value is ExtensionWorkflow;
|
|
138
|
+
/** The schema's declared UTF-8 document bound in bytes. */
|
|
139
|
+
export declare const extensionWorkflowJsonMaxBytes = 4194304;
|
|
140
|
+
/** Parses one strict ExtensionWorkflow document; refusal kinds match the C# codec. */
|
|
141
|
+
export declare function tryParseExtensionWorkflowJson(input: Uint8Array | string): {
|
|
142
|
+
ok: true;
|
|
143
|
+
value: ExtensionWorkflow;
|
|
144
|
+
} | {
|
|
145
|
+
ok: false;
|
|
146
|
+
failure: "tooLarge" | "malformed" | "invalid";
|
|
147
|
+
};
|
|
148
|
+
/** Parses one strict ExtensionWorkflow document or throws an error carrying the refusal kind. */
|
|
149
|
+
export declare function parseExtensionWorkflowJson(input: Uint8Array | string): ExtensionWorkflow;
|
|
150
|
+
/** Writes compact UTF-8 in schema property order and refuses output the schema rejects. */
|
|
151
|
+
export declare function serializeExtensionWorkflowJson(value: ExtensionWorkflow): Uint8Array;
|