@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.
Files changed (43) hide show
  1. package/NOTICE +57 -5
  2. package/README.md +9 -2
  3. package/build-identity.json +192 -0
  4. package/contracts.binpb +0 -0
  5. package/dist/gen/http.d.ts +10 -0
  6. package/dist/gen/http.js +13 -0
  7. package/dist/index.d.ts +10 -1
  8. package/dist/index.js +20 -2
  9. package/dist/shapes/gen/AndroidUpdate.d.ts +41 -0
  10. package/dist/shapes/gen/AndroidUpdate.js +620 -0
  11. package/dist/shapes/gen/CatalogIndex.d.ts +49 -0
  12. package/dist/shapes/gen/CatalogIndex.js +703 -0
  13. package/dist/shapes/gen/CatalogRevocations.d.ts +46 -0
  14. package/dist/shapes/gen/CatalogRevocations.js +647 -0
  15. package/dist/shapes/gen/DeclarativePanel.d.ts +154 -0
  16. package/dist/shapes/gen/DeclarativePanel.js +2988 -0
  17. package/dist/shapes/gen/ExtensionManifest.d.ts +278 -0
  18. package/dist/shapes/gen/ExtensionManifest.js +3974 -0
  19. package/dist/shapes/gen/ExtensionWorkflow.d.ts +151 -0
  20. package/dist/shapes/gen/ExtensionWorkflow.js +2251 -0
  21. package/dist/shapes/gen/PackageInventory.d.ts +24 -0
  22. package/dist/shapes/gen/PackageInventory.js +327 -0
  23. package/dist/shapes/gen/PartReceipt.d.ts +21 -0
  24. package/dist/shapes/gen/PartReceipt.js +290 -0
  25. package/dist/shapes/gen/PolicyBody.d.ts +269 -0
  26. package/dist/shapes/gen/PolicyBody.js +4188 -0
  27. package/dist/shapes/gen/RealmDescriptor.d.ts +39 -0
  28. package/dist/shapes/gen/RealmDescriptor.js +627 -0
  29. package/package.json +15 -7
  30. package/sbom.cdx.json +17 -17
  31. package/schemas/public/http/v1/inventory.schema.json +49 -0
  32. package/schemas/public/http/v1/manifest.schema.json +1459 -0
  33. package/schemas/public/http/v1/panel.schema.json +963 -0
  34. package/schemas/public/http/v1/policy-body.schema.json +1376 -0
  35. package/schemas/public/http/v1/schema.json +30 -0
  36. package/schemas/public/http/v1/signed-formats.schema.json +748 -0
  37. package/schemas/public/http/v1/workflow.schema.json +715 -0
  38. package/schemas/public/proto/arcforges/events/v1/events.proto +14 -0
  39. package/schemas/public/proto/arcforges/foundation/v1/foundation.proto +373 -0
  40. package/schemas/public/proto/arcforges/hello/v1/hello.proto +23 -0
  41. package/schemas/public/proto/arcforges/publicapi/v1/content.proto +767 -0
  42. package/schemas/public/proto/arcforges/publicapi/v1/descriptors.proto +27 -0
  43. package/source.json +35 -10
@@ -0,0 +1,278 @@
1
+ export interface ExtensionManifest {
2
+ schemaVersion: string;
3
+ packageId: string;
4
+ version: string;
5
+ publisherId: string;
6
+ signingKeyId: string;
7
+ name: Record<string, string>;
8
+ description: Record<string, string>;
9
+ platforms: ManifestPlatform[];
10
+ contractRanges: ManifestContractRange[];
11
+ contributions: ManifestContribution[];
12
+ permissions: ManifestPermission[];
13
+ dependencies: ManifestDependency[];
14
+ executables: ManifestExecutable[];
15
+ privateState?: ManifestPrivateState;
16
+ resources: ManifestResource[];
17
+ }
18
+ export interface ManifestContractRange {
19
+ packageId: string;
20
+ range: ManifestVersionRange;
21
+ }
22
+ export type ManifestContribution = ManifestSkillContribution | ManifestTemplateContribution | ManifestWorkflowContribution | ManifestMcpContribution | ManifestConnectorContribution | ManifestExtensionContribution;
23
+ export interface ManifestConnectorContribution {
24
+ id: string;
25
+ kind: string;
26
+ titleKey: string;
27
+ descriptionKey?: string;
28
+ inputSchemaId?: string;
29
+ outputSchemaId?: string;
30
+ permissions: ManifestPermission[];
31
+ body: ManifestConnectorBody;
32
+ }
33
+ export interface ManifestConnectorBody {
34
+ definitionId: string;
35
+ authKind: string;
36
+ origins: string[];
37
+ scopes: string[];
38
+ secretInputs: ManifestSecretInput[];
39
+ capabilities: ManifestCapabilityBinding[];
40
+ egressLimits: ManifestCallLimits;
41
+ }
42
+ export interface ManifestCallLimits {
43
+ timeoutMs: number;
44
+ maxRequestBytes: number;
45
+ maxResponseBytes: number;
46
+ maxConcurrentCalls: number;
47
+ }
48
+ export interface ManifestCapabilityBinding {
49
+ operationId: string;
50
+ inputSchemaId: string;
51
+ outputSchemaId: string;
52
+ }
53
+ export interface ManifestDependency {
54
+ packageId: string;
55
+ range: ManifestVersionRange;
56
+ }
57
+ export interface ManifestExecutable {
58
+ rid: string;
59
+ path: string;
60
+ sha256: string;
61
+ runtimeIds: string[];
62
+ systemDependencyIds: string[];
63
+ }
64
+ export interface ManifestExtensionContribution {
65
+ id: string;
66
+ kind: string;
67
+ titleKey: string;
68
+ descriptionKey?: string;
69
+ inputSchemaId?: string;
70
+ outputSchemaId?: string;
71
+ permissions: ManifestPermission[];
72
+ body: ManifestExtensionBody;
73
+ }
74
+ export interface ManifestExtensionBody {
75
+ executableRids: string[];
76
+ extensionPoints: ManifestExtensionPoint[];
77
+ panels: ManifestContent[];
78
+ settings?: ManifestContent;
79
+ background: boolean;
80
+ }
81
+ export interface ManifestContent {
82
+ path: string;
83
+ sha256: string;
84
+ schemaVersion: string;
85
+ }
86
+ export interface ManifestExtensionPoint {
87
+ id: string;
88
+ kind: string;
89
+ capability?: string;
90
+ inputSchemaId?: string;
91
+ outputSchemaId?: string;
92
+ }
93
+ export interface ManifestMcpContribution {
94
+ id: string;
95
+ kind: string;
96
+ titleKey: string;
97
+ descriptionKey?: string;
98
+ inputSchemaId?: string;
99
+ outputSchemaId?: string;
100
+ permissions: ManifestPermission[];
101
+ body: ManifestMcpBody;
102
+ }
103
+ export type ManifestMcpBody = ManifestMcpStdioBody | ManifestMcpHttpBody;
104
+ export interface ManifestMcpHttpBody {
105
+ transport: string;
106
+ protocolVersion: string;
107
+ serverOrigin: string;
108
+ toolAllowlist: ManifestCapabilityBinding[];
109
+ parameterSchemaDigests: string[];
110
+ limits: ManifestCallLimits;
111
+ }
112
+ export interface ManifestMcpStdioBody {
113
+ transport: string;
114
+ protocolVersion: string;
115
+ executable: ManifestExecutable;
116
+ toolAllowlist: ManifestCapabilityBinding[];
117
+ parameterSchemaDigests: string[];
118
+ limits: ManifestCallLimits;
119
+ }
120
+ export type ManifestPermission = ManifestCapabilityPermission | ManifestResourcePermission | ManifestNetworkPermission | ManifestBackgroundPermission;
121
+ export interface ManifestBackgroundPermission {
122
+ kind: string;
123
+ reasonKey: string;
124
+ enabled: boolean;
125
+ }
126
+ export interface ManifestCapabilityPermission {
127
+ kind: string;
128
+ reasonKey: string;
129
+ operationId: string;
130
+ }
131
+ export interface ManifestNetworkPermission {
132
+ kind: string;
133
+ reasonKey: string;
134
+ origins: string[];
135
+ }
136
+ export interface ManifestPlatform {
137
+ os: string;
138
+ rid: string;
139
+ }
140
+ export interface ManifestPrivateState {
141
+ schemaVersion: number;
142
+ maxBytes: number;
143
+ migrationRange: ManifestMigrationRange;
144
+ }
145
+ export interface ManifestMigrationRange {
146
+ min: number;
147
+ max: number;
148
+ }
149
+ export interface ManifestResource {
150
+ path: string;
151
+ sha256: string;
152
+ licence: string;
153
+ }
154
+ export interface ManifestResourcePermission {
155
+ kind: string;
156
+ reasonKey: string;
157
+ resourceKind: string;
158
+ access: string;
159
+ }
160
+ export interface ManifestSecretInput {
161
+ name: string;
162
+ descriptionKey: string;
163
+ required: boolean;
164
+ }
165
+ export interface ManifestSkillContribution {
166
+ id: string;
167
+ kind: string;
168
+ titleKey: string;
169
+ descriptionKey?: string;
170
+ inputSchemaId?: string;
171
+ outputSchemaId?: string;
172
+ permissions: ManifestPermission[];
173
+ body: ManifestSkillBody;
174
+ }
175
+ export interface ManifestSkillBody {
176
+ guidance: ManifestResource;
177
+ triggerLabels: string[];
178
+ contextPolicyKeys: string[];
179
+ capabilityIds: string[];
180
+ }
181
+ export interface ManifestTemplateContribution {
182
+ id: string;
183
+ kind: string;
184
+ titleKey: string;
185
+ descriptionKey?: string;
186
+ inputSchemaId?: string;
187
+ outputSchemaId?: string;
188
+ permissions: ManifestPermission[];
189
+ body: ManifestTemplateBody;
190
+ }
191
+ export interface ManifestTemplateBody {
192
+ ownerProduct: string;
193
+ templateKind: string;
194
+ body: ManifestContent;
195
+ parameters: ManifestParameter[];
196
+ outputCapabilityId: string;
197
+ }
198
+ export interface ManifestParameter {
199
+ name: string;
200
+ type: string;
201
+ required: boolean;
202
+ default?: ManifestTypedValue;
203
+ min?: string;
204
+ max?: string;
205
+ maxLength?: number;
206
+ values?: string[];
207
+ }
208
+ export type ManifestTypedValue = ManifestTextValue | ManifestBoolValue | ManifestInt64Value | ManifestDecimalValue | ManifestEnumValue | ManifestResourceRefValue;
209
+ export interface ManifestBoolValue {
210
+ kind: string;
211
+ value: boolean;
212
+ }
213
+ export interface ManifestDecimalValue {
214
+ kind: string;
215
+ value: string;
216
+ }
217
+ export interface ManifestEnumValue {
218
+ kind: string;
219
+ value: string;
220
+ }
221
+ export interface ManifestInt64Value {
222
+ kind: string;
223
+ value: string;
224
+ }
225
+ export interface ManifestResourceRefValue {
226
+ kind: string;
227
+ value: ManifestResourceRef;
228
+ }
229
+ export interface ManifestResourceRef {
230
+ realmId: string;
231
+ workspaceId?: string;
232
+ ownerAppId: string;
233
+ resourceKind: string;
234
+ resourceId: string;
235
+ displayHint?: string;
236
+ availability: string;
237
+ holdingDeviceId?: string;
238
+ }
239
+ export interface ManifestTextValue {
240
+ kind: string;
241
+ value: string;
242
+ }
243
+ export interface ManifestVersionRange {
244
+ major: number;
245
+ min: string;
246
+ max: string;
247
+ }
248
+ export interface ManifestWorkflowContribution {
249
+ id: string;
250
+ kind: string;
251
+ titleKey: string;
252
+ descriptionKey?: string;
253
+ inputSchemaId?: string;
254
+ outputSchemaId?: string;
255
+ permissions: ManifestPermission[];
256
+ body: ManifestWorkflowBody;
257
+ }
258
+ export interface ManifestWorkflowBody {
259
+ workflow: ManifestContent;
260
+ inputSchemaId: string;
261
+ outputSchemaId: string;
262
+ capabilityIds: string[];
263
+ }
264
+ export declare function isExtensionManifest(value: unknown): value is ExtensionManifest;
265
+ /** The schema's declared UTF-8 document bound in bytes. */
266
+ export declare const extensionManifestJsonMaxBytes = 4194304;
267
+ /** Parses one strict ExtensionManifest document; refusal kinds match the C# codec. */
268
+ export declare function tryParseExtensionManifestJson(input: Uint8Array | string): {
269
+ ok: true;
270
+ value: ExtensionManifest;
271
+ } | {
272
+ ok: false;
273
+ failure: "tooLarge" | "malformed" | "invalid";
274
+ };
275
+ /** Parses one strict ExtensionManifest document or throws an error carrying the refusal kind. */
276
+ export declare function parseExtensionManifestJson(input: Uint8Array | string): ExtensionManifest;
277
+ /** Writes compact UTF-8 in schema property order and refuses output the schema rejects. */
278
+ export declare function serializeExtensionManifestJson(value: ExtensionManifest): Uint8Array;