@arcforges/api-client 1.0.0-ci.23.1 → 1.0.0-ci.244.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 (46) hide show
  1. package/NOTICE +57 -5
  2. package/README.md +9 -2
  3. package/build-identity.json +209 -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/catalog/v1/catalog.proto +204 -0
  39. package/schemas/public/proto/arcforges/events/v1/events.proto +14 -0
  40. package/schemas/public/proto/arcforges/foundation/v1/foundation.proto +373 -0
  41. package/schemas/public/proto/arcforges/hello/v1/hello.proto +23 -0
  42. package/schemas/public/proto/arcforges/publicapi/v1/commerce.proto +542 -0
  43. package/schemas/public/proto/arcforges/publicapi/v1/content.proto +774 -0
  44. package/schemas/public/proto/arcforges/publicapi/v1/descriptors.proto +27 -0
  45. package/schemas/public/proto/arcforges/publicapi/v1/inprocess-values.proto +134 -0
  46. package/source.json +38 -10
@@ -0,0 +1,154 @@
1
+ export interface DeclarativePanel {
2
+ schemaVersion: string;
3
+ inputSchemaId?: string;
4
+ controls: PanelControl[];
5
+ }
6
+ export type PanelControl = PanelColumnControl | PanelRowControl | PanelSectionControl | PanelTextControl | PanelTextInputControl | PanelNumberInputControl | PanelToggleControl | PanelSelectControl | PanelButtonControl | PanelListControl | PanelTableControl | PanelResourceLinkControl | PanelPreviewControl;
7
+ export interface PanelButtonControl {
8
+ id: string;
9
+ kind: string;
10
+ label?: Record<string, string>;
11
+ help?: Record<string, string>;
12
+ visible?: PanelPredicate;
13
+ operationId: string;
14
+ arguments: PanelArgument[];
15
+ }
16
+ export interface PanelArgument {
17
+ name: string;
18
+ valueRef: PanelValueRef;
19
+ }
20
+ export interface PanelColumnControl {
21
+ id: string;
22
+ kind: string;
23
+ label?: Record<string, string>;
24
+ help?: Record<string, string>;
25
+ visible?: PanelPredicate;
26
+ children: string[];
27
+ }
28
+ export interface PanelListControl {
29
+ id: string;
30
+ kind: string;
31
+ label?: Record<string, string>;
32
+ help?: Record<string, string>;
33
+ visible?: PanelPredicate;
34
+ binding: PanelValueRef;
35
+ pageSize: number;
36
+ }
37
+ export interface PanelNumberInputControl {
38
+ id: string;
39
+ kind: string;
40
+ label?: Record<string, string>;
41
+ help?: Record<string, string>;
42
+ visible?: PanelPredicate;
43
+ binding: PanelValueRef;
44
+ }
45
+ export type PanelPredicate = PanelComparison | PanelExists | PanelAll | PanelAny;
46
+ export interface PanelAll {
47
+ operator: string;
48
+ predicates: PanelPredicate[];
49
+ }
50
+ export interface PanelAny {
51
+ operator: string;
52
+ predicates: PanelPredicate[];
53
+ }
54
+ export interface PanelComparison {
55
+ operator: string;
56
+ left: PanelValueRef;
57
+ right: PanelValueRef;
58
+ }
59
+ export interface PanelExists {
60
+ operator: string;
61
+ value: PanelValueRef;
62
+ }
63
+ export interface PanelPreviewControl {
64
+ id: string;
65
+ kind: string;
66
+ label?: Record<string, string>;
67
+ help?: Record<string, string>;
68
+ visible?: PanelPredicate;
69
+ binding: PanelValueRef;
70
+ }
71
+ export interface PanelResourceLinkControl {
72
+ id: string;
73
+ kind: string;
74
+ label?: Record<string, string>;
75
+ help?: Record<string, string>;
76
+ visible?: PanelPredicate;
77
+ binding: PanelValueRef;
78
+ }
79
+ export interface PanelRowControl {
80
+ id: string;
81
+ kind: string;
82
+ label?: Record<string, string>;
83
+ help?: Record<string, string>;
84
+ visible?: PanelPredicate;
85
+ children: string[];
86
+ }
87
+ export interface PanelSectionControl {
88
+ id: string;
89
+ kind: string;
90
+ label?: Record<string, string>;
91
+ help?: Record<string, string>;
92
+ visible?: PanelPredicate;
93
+ children: string[];
94
+ }
95
+ export interface PanelSelectControl {
96
+ id: string;
97
+ kind: string;
98
+ label?: Record<string, string>;
99
+ help?: Record<string, string>;
100
+ visible?: PanelPredicate;
101
+ binding: PanelValueRef;
102
+ optionsBinding: PanelValueRef;
103
+ }
104
+ export interface PanelTableControl {
105
+ id: string;
106
+ kind: string;
107
+ label?: Record<string, string>;
108
+ help?: Record<string, string>;
109
+ visible?: PanelPredicate;
110
+ binding: PanelValueRef;
111
+ pageSize: number;
112
+ }
113
+ export interface PanelTextControl {
114
+ id: string;
115
+ kind: string;
116
+ label?: Record<string, string>;
117
+ help?: Record<string, string>;
118
+ visible?: PanelPredicate;
119
+ text: Record<string, string>;
120
+ }
121
+ export interface PanelTextInputControl {
122
+ id: string;
123
+ kind: string;
124
+ label?: Record<string, string>;
125
+ help?: Record<string, string>;
126
+ visible?: PanelPredicate;
127
+ binding: PanelValueRef;
128
+ }
129
+ export interface PanelToggleControl {
130
+ id: string;
131
+ kind: string;
132
+ label?: Record<string, string>;
133
+ help?: Record<string, string>;
134
+ visible?: PanelPredicate;
135
+ binding: PanelValueRef;
136
+ }
137
+ export interface PanelValueRef {
138
+ property: string;
139
+ }
140
+ export declare function isDeclarativePanel(value: unknown): value is DeclarativePanel;
141
+ /** The schema's declared UTF-8 document bound in bytes. */
142
+ export declare const declarativePanelJsonMaxBytes = 4194304;
143
+ /** Parses one strict DeclarativePanel document; refusal kinds match the C# codec. */
144
+ export declare function tryParseDeclarativePanelJson(input: Uint8Array | string): {
145
+ ok: true;
146
+ value: DeclarativePanel;
147
+ } | {
148
+ ok: false;
149
+ failure: "tooLarge" | "malformed" | "invalid";
150
+ };
151
+ /** Parses one strict DeclarativePanel document or throws an error carrying the refusal kind. */
152
+ export declare function parseDeclarativePanelJson(input: Uint8Array | string): DeclarativePanel;
153
+ /** Writes compact UTF-8 in schema property order and refuses output the schema rejects. */
154
+ export declare function serializeDeclarativePanelJson(value: DeclarativePanel): Uint8Array;