@arcforges/api-client 1.0.0-ci.27.1 → 1.0.0-ci.277.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 +246 -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/catalog/v1/catalog.proto +204 -0
- package/schemas/public/proto/arcforges/events/v1/events.proto +343 -0
- package/schemas/public/proto/arcforges/foundation/v1/foundation.proto +384 -0
- package/schemas/public/proto/arcforges/hello/v1/hello.proto +23 -0
- package/schemas/public/proto/arcforges/publicapi/v1/application.proto +297 -0
- package/schemas/public/proto/arcforges/publicapi/v1/chat.proto +1507 -0
- package/schemas/public/proto/arcforges/publicapi/v1/commerce.proto +542 -0
- package/schemas/public/proto/arcforges/publicapi/v1/content.proto +813 -0
- package/schemas/public/proto/arcforges/publicapi/v1/descriptors.proto +27 -0
- package/schemas/public/proto/arcforges/publicapi/v1/export.proto +112 -0
- package/schemas/public/proto/arcforges/publicapi/v1/inprocess-values.proto +134 -0
- package/schemas/public/proto/arcforges/publicapi/v1/scope.proto +81 -0
- package/schemas/public/proto/arcforges/publicapi/v1/support.proto +242 -0
- package/schemas/public/proto/arcforges/publicapi/v1/sync.proto +459 -0
- package/schemas/public/proto/arcforges/publicapi/v1/transfer.proto +190 -0
- package/schemas/public/proto/arcforges/simulation/v1/simulation.proto +413 -0
- package/source.json +46 -11
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package arcforges.publicapi.v1;
|
|
4
|
+
import "arcforges/foundation/v1/foundation.proto";
|
|
5
|
+
import "arcforges/publicapi/v1/content.proto";
|
|
6
|
+
option csharp_namespace = "ArcForges.Contracts.PublicApi.V1";
|
|
7
|
+
option java_package = "io.github.arcforges.contracts.publicapi.v1";
|
|
8
|
+
option java_multiple_files = true;
|
|
9
|
+
option java_outer_classname = "DescriptorsProto";
|
|
10
|
+
|
|
11
|
+
// Descriptions reference registered providers and preserve ContextRef authority.
|
|
12
|
+
message ContextProvider {
|
|
13
|
+
optional string key = 1 [json_name = "key"];
|
|
14
|
+
optional string app_id = 2 [json_name = "appId"];
|
|
15
|
+
optional string title_key = 3 [json_name = "titleKey"];
|
|
16
|
+
repeated string context_kinds = 4 [json_name = "contextKinds"];
|
|
17
|
+
optional uint32 max_items = 5 [json_name = "maxItems"];
|
|
18
|
+
optional uint32 max_bytes = 6 [json_name = "maxBytes"];
|
|
19
|
+
}
|
|
20
|
+
message ContextDescriptor {
|
|
21
|
+
optional string key = 1 [json_name = "key"];
|
|
22
|
+
optional string provider = 2 [json_name = "provider"];
|
|
23
|
+
optional string kind = 3 [json_name = "kind"];
|
|
24
|
+
optional string title_key = 4 [json_name = "titleKey"];
|
|
25
|
+
ContextRef context = 5 [json_name = "context"];
|
|
26
|
+
arcforges.foundation.v1.Instant observed_at = 6 [json_name = "observedAt"];
|
|
27
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package arcforges.publicapi.v1;
|
|
5
|
+
|
|
6
|
+
import "arcforges/foundation/v1/foundation.proto";
|
|
7
|
+
import "arcforges/publicapi/v1/commerce.proto";
|
|
8
|
+
|
|
9
|
+
option csharp_namespace = "ArcForges.Contracts.PublicApi.V1";
|
|
10
|
+
option java_package = "io.github.arcforges.contracts.publicapi.v1";
|
|
11
|
+
option java_multiple_files = true;
|
|
12
|
+
option java_outer_classname = "ExportProto";
|
|
13
|
+
|
|
14
|
+
// Export request/status transport projections reuse the canonical commerce
|
|
15
|
+
// ExportJob and Foundation TransferTicket records.
|
|
16
|
+
service DataService {
|
|
17
|
+
rpc RequestExport(DataServiceRequestExportRequest) returns (DataServiceRequestExportResponse);
|
|
18
|
+
rpc GetExportState(DataServiceGetExportStateRequest) returns (DataServiceGetExportStateResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
service ExportService {
|
|
22
|
+
rpc GetStatus(ExportServiceGetStatusRequest) returns (ExportServiceGetStatusResponse);
|
|
23
|
+
rpc Cancel(ExportServiceCancelRequest) returns (ExportServiceCancelResponse);
|
|
24
|
+
rpc GetDownload(ExportServiceGetDownloadRequest) returns (ExportServiceGetDownloadResponse);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message DataServiceRequestExportRequest {
|
|
28
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
29
|
+
reserved 2 to 9;
|
|
30
|
+
arcforges.foundation.v1.Id export_id = 10 [json_name = "exportId"];
|
|
31
|
+
}
|
|
32
|
+
message DataServiceRequestExportValue {
|
|
33
|
+
ExportJob job = 10 [json_name = "job"];
|
|
34
|
+
}
|
|
35
|
+
message DataServiceRequestExportResponse {
|
|
36
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
37
|
+
oneof outcome {
|
|
38
|
+
DataServiceRequestExportValue value = 2 [json_name = "value"];
|
|
39
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
40
|
+
}
|
|
41
|
+
reserved 4 to 9;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message DataServiceGetExportStateRequest {
|
|
45
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
46
|
+
reserved 2 to 9;
|
|
47
|
+
arcforges.foundation.v1.Id export_id = 10 [json_name = "exportId"];
|
|
48
|
+
}
|
|
49
|
+
message DataServiceGetExportStateValue {
|
|
50
|
+
ExportJob job = 10 [json_name = "job"];
|
|
51
|
+
}
|
|
52
|
+
message DataServiceGetExportStateResponse {
|
|
53
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
54
|
+
oneof outcome {
|
|
55
|
+
DataServiceGetExportStateValue value = 2 [json_name = "value"];
|
|
56
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
57
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
58
|
+
}
|
|
59
|
+
reserved 5 to 9;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message ExportServiceGetStatusRequest {
|
|
63
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
64
|
+
reserved 2 to 9;
|
|
65
|
+
arcforges.foundation.v1.Id export_id = 10 [json_name = "exportId"];
|
|
66
|
+
}
|
|
67
|
+
message ExportServiceGetStatusValue {
|
|
68
|
+
ExportJob job = 10 [json_name = "job"];
|
|
69
|
+
}
|
|
70
|
+
message ExportServiceGetStatusResponse {
|
|
71
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
72
|
+
oneof outcome {
|
|
73
|
+
ExportServiceGetStatusValue value = 2 [json_name = "value"];
|
|
74
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
75
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
76
|
+
}
|
|
77
|
+
reserved 5 to 9;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ExportServiceCancelRequest {
|
|
81
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
82
|
+
reserved 2 to 9;
|
|
83
|
+
arcforges.foundation.v1.Id export_id = 10 [json_name = "exportId"];
|
|
84
|
+
}
|
|
85
|
+
message ExportServiceCancelValue {
|
|
86
|
+
ExportJob job = 10 [json_name = "job"];
|
|
87
|
+
}
|
|
88
|
+
message ExportServiceCancelResponse {
|
|
89
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
90
|
+
oneof outcome {
|
|
91
|
+
ExportServiceCancelValue value = 2 [json_name = "value"];
|
|
92
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
93
|
+
}
|
|
94
|
+
reserved 4 to 9;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message ExportServiceGetDownloadRequest {
|
|
98
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
99
|
+
reserved 2 to 9;
|
|
100
|
+
arcforges.foundation.v1.Id export_id = 10 [json_name = "exportId"];
|
|
101
|
+
}
|
|
102
|
+
message ExportServiceGetDownloadValue {
|
|
103
|
+
arcforges.foundation.v1.TransferTicket ticket = 10 [json_name = "ticket"];
|
|
104
|
+
}
|
|
105
|
+
message ExportServiceGetDownloadResponse {
|
|
106
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
107
|
+
oneof outcome {
|
|
108
|
+
ExportServiceGetDownloadValue value = 2 [json_name = "value"];
|
|
109
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
110
|
+
}
|
|
111
|
+
reserved 4 to 9;
|
|
112
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package arcforges.publicapi.v1;
|
|
5
|
+
|
|
6
|
+
import "arcforges/foundation/v1/foundation.proto";
|
|
7
|
+
import "arcforges/publicapi/v1/content.proto";
|
|
8
|
+
|
|
9
|
+
option csharp_namespace = "ArcForges.Contracts.PublicApi.V1";
|
|
10
|
+
option java_package = "io.github.arcforges.contracts.publicapi.v1";
|
|
11
|
+
option java_multiple_files = true;
|
|
12
|
+
option java_outer_classname = "InprocessValuesProto";
|
|
13
|
+
|
|
14
|
+
// Canonical shared values from registry04. These records register no service,
|
|
15
|
+
// authorize no access, and do not substitute for the owner's permission checks.
|
|
16
|
+
enum ChatMode {
|
|
17
|
+
CHAT_MODE_UNSPECIFIED = 0;
|
|
18
|
+
CHAT_MODE_ORDINARY = 1;
|
|
19
|
+
CHAT_MODE_AGENT = 2;
|
|
20
|
+
CHAT_MODE_TEMPORARY = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum ApprovalDecision {
|
|
24
|
+
APPROVAL_DECISION_UNSPECIFIED = 0;
|
|
25
|
+
APPROVAL_DECISION_APPROVE = 1;
|
|
26
|
+
APPROVAL_DECISION_REJECT = 2;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message ContextRequest {
|
|
30
|
+
optional string kind = 1 [json_name = "kind"];
|
|
31
|
+
ContextRef selector = 2 [json_name = "selector"];
|
|
32
|
+
// Callers select defaults 50/65536; explicit budgets may only narrow caps.
|
|
33
|
+
optional uint32 max_items = 3 [json_name = "maxItems"];
|
|
34
|
+
optional uint32 max_bytes = 4 [json_name = "maxBytes"];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message ContextContribution {
|
|
38
|
+
repeated ContextRef sources = 1 [json_name = "sources"];
|
|
39
|
+
repeated ContextItem items = 2 [json_name = "items"];
|
|
40
|
+
optional bool truncated = 3 [json_name = "truncated"];
|
|
41
|
+
repeated string reasons = 4 [json_name = "reasons"];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message ContextItem {
|
|
45
|
+
ContextRef source = 1 [json_name = "source"];
|
|
46
|
+
oneof projection {
|
|
47
|
+
string text = 2 [json_name = "text"];
|
|
48
|
+
MeasurementResult measurement = 3 [json_name = "measurement"];
|
|
49
|
+
}
|
|
50
|
+
reserved 4;
|
|
51
|
+
reserved "timeline";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Availability is preflight evidence, never a reservation or authorization token.
|
|
55
|
+
message Availability {
|
|
56
|
+
optional string capability = 1 [json_name = "capability"];
|
|
57
|
+
optional bool allowed = 2 [json_name = "allowed"];
|
|
58
|
+
repeated string reasons = 3 [json_name = "reasons"];
|
|
59
|
+
arcforges.foundation.v1.Instant recovery_at = 4 [json_name = "recoveryAt"];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message PreviewRequest {
|
|
63
|
+
optional uint32 max_width = 1 [json_name = "maxWidth"];
|
|
64
|
+
optional uint32 max_height = 2 [json_name = "maxHeight"];
|
|
65
|
+
optional uint32 page = 3 [json_name = "page"];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message ResourceMetadata {
|
|
69
|
+
arcforges.foundation.v1.ResourceRef resource = 1 [json_name = "resource"];
|
|
70
|
+
arcforges.foundation.v1.ResourceVersionRef version = 2 [json_name = "version"];
|
|
71
|
+
arcforges.foundation.v1.BlobRef blob = 3 [json_name = "blob"];
|
|
72
|
+
optional string media_type = 4 [json_name = "mediaType"];
|
|
73
|
+
optional string transfer_state = 5 [json_name = "transferState"];
|
|
74
|
+
arcforges.foundation.v1.ContentOrigin origin = 6 [json_name = "origin"];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message ApprovalView {
|
|
78
|
+
arcforges.foundation.v1.Id approval_id = 1 [json_name = "approvalId"];
|
|
79
|
+
arcforges.foundation.v1.Id task_id = 2 [json_name = "taskId"];
|
|
80
|
+
optional string proposal_hash = 3 [json_name = "proposalHash"];
|
|
81
|
+
optional string risk = 4 [json_name = "risk"];
|
|
82
|
+
optional string state = 5 [json_name = "state"];
|
|
83
|
+
arcforges.foundation.v1.Instant expires_at = 6 [json_name = "expiresAt"];
|
|
84
|
+
repeated ContextRef context = 7 [json_name = "context"];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message TurnOptions {
|
|
88
|
+
arcforges.foundation.v1.Id task_id = 1 [json_name = "taskId"];
|
|
89
|
+
arcforges.foundation.v1.Id profile_id = 2 [json_name = "profileId"];
|
|
90
|
+
optional uint64 max_budget = 3 [json_name = "maxBudget"];
|
|
91
|
+
optional ChatMode mode = 4 [json_name = "mode"];
|
|
92
|
+
arcforges.foundation.v1.Id turn_id = 5 [json_name = "turnId"];
|
|
93
|
+
optional string model_id = 6 [json_name = "modelId"];
|
|
94
|
+
arcforges.foundation.v1.Id target_device_id = 7 [json_name = "targetDeviceId"];
|
|
95
|
+
optional bool allow_web_search = 8 [json_name = "allowWebSearch"];
|
|
96
|
+
optional bool compaction_requested = 9 [json_name = "compactionRequested"];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// These permissions are independent; synchronization consent remains separate.
|
|
100
|
+
message KnowledgePolicy {
|
|
101
|
+
optional bool searchable = 1 [json_name = "searchable"];
|
|
102
|
+
optional bool cloud_index_allowed = 2 [json_name = "cloudIndexAllowed"];
|
|
103
|
+
optional bool ai_retrieval_allowed = 3 [json_name = "aiRetrievalAllowed"];
|
|
104
|
+
optional bool managed_ai_processing_allowed = 4 [json_name = "managedAiProcessingAllowed"];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Absence inherits. Explicit false is a real policy selection, not absence.
|
|
108
|
+
message KnowledgePolicyPatch {
|
|
109
|
+
optional bool searchable = 1 [json_name = "searchable"];
|
|
110
|
+
optional bool cloud_index_allowed = 2 [json_name = "cloudIndexAllowed"];
|
|
111
|
+
optional bool ai_retrieval_allowed = 3 [json_name = "aiRetrievalAllowed"];
|
|
112
|
+
optional bool managed_ai_processing_allowed = 4 [json_name = "managedAiProcessingAllowed"];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message SourcePolicyView {
|
|
116
|
+
arcforges.foundation.v1.AggregateRef target = 1 [json_name = "target"];
|
|
117
|
+
arcforges.foundation.v1.Revision revision = 2 [json_name = "revision"];
|
|
118
|
+
KnowledgePolicyPatch local = 3 [json_name = "local"];
|
|
119
|
+
KnowledgePolicy effective = 4 [json_name = "effective"];
|
|
120
|
+
repeated string governing_denials = 5 [json_name = "governingDenials"];
|
|
121
|
+
arcforges.foundation.v1.AggregateRef inherited_from = 6 [json_name = "inheritedFrom"];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// A shape-valid selection still needs owner authorization, exact scope hashing,
|
|
125
|
+
// expiry and one-use validation. Temporary overrides cannot enroll an index.
|
|
126
|
+
message SourceConsentSpec {
|
|
127
|
+
arcforges.foundation.v1.Id operation_id = 1 [json_name = "operationId"];
|
|
128
|
+
optional string purpose = 2 [json_name = "purpose"];
|
|
129
|
+
repeated arcforges.foundation.v1.VersionedRef sources = 3 [json_name = "sources"];
|
|
130
|
+
optional uint64 max_bytes = 4 [json_name = "maxBytes"];
|
|
131
|
+
arcforges.foundation.v1.Revision policy_revision = 5 [json_name = "policyRevision"];
|
|
132
|
+
KnowledgePolicyPatch override = 6 [json_name = "override"];
|
|
133
|
+
optional string query_hash = 7 [json_name = "queryHash"];
|
|
134
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package arcforges.publicapi.v1;
|
|
4
|
+
|
|
5
|
+
import "arcforges/foundation/v1/foundation.proto";
|
|
6
|
+
import "arcforges/publicapi/v1/content.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "ArcForges.Contracts.PublicApi.V1";
|
|
9
|
+
option java_package = "io.github.arcforges.contracts.publicapi.v1";
|
|
10
|
+
option java_multiple_files = true;
|
|
11
|
+
option java_outer_classname = "ScopeProto";
|
|
12
|
+
|
|
13
|
+
// Read-only projections of committed ArcScope owner metadata.
|
|
14
|
+
service ScopeService {
|
|
15
|
+
rpc ListProjects(ScopeServiceListProjectsRequest) returns (ScopeServiceListProjectsResponse);
|
|
16
|
+
rpc ListSessions(ScopeServiceListSessionsRequest) returns (ScopeServiceListSessionsResponse);
|
|
17
|
+
rpc GetSession(ScopeServiceGetSessionRequest) returns (ScopeServiceGetSessionResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message ScopeServiceListProjectsRequest {
|
|
21
|
+
arcforges.foundation.v1.RequestMeta meta = 1;
|
|
22
|
+
reserved 2 to 9;
|
|
23
|
+
arcforges.foundation.v1.PageRequest page = 10;
|
|
24
|
+
}
|
|
25
|
+
message ScopeServiceListProjectsValue {
|
|
26
|
+
repeated ScopeProjectSummary items = 10;
|
|
27
|
+
arcforges.foundation.v1.PageState page = 11;
|
|
28
|
+
}
|
|
29
|
+
message ScopeServiceListProjectsResponse {
|
|
30
|
+
arcforges.foundation.v1.ResponseMeta meta = 1;
|
|
31
|
+
oneof outcome {
|
|
32
|
+
ScopeServiceListProjectsValue value = 2;
|
|
33
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
34
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
reserved 5 to 9;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message ScopeServiceListSessionsRequest {
|
|
41
|
+
arcforges.foundation.v1.RequestMeta meta = 1;
|
|
42
|
+
reserved 2 to 9;
|
|
43
|
+
arcforges.foundation.v1.Id project_id = 10 [json_name = "projectId"];
|
|
44
|
+
arcforges.foundation.v1.PageRequest page = 11;
|
|
45
|
+
}
|
|
46
|
+
message ScopeServiceListSessionsValue {
|
|
47
|
+
repeated ScopeSessionSummary items = 10;
|
|
48
|
+
arcforges.foundation.v1.PageState page = 11;
|
|
49
|
+
}
|
|
50
|
+
message ScopeServiceListSessionsResponse {
|
|
51
|
+
arcforges.foundation.v1.ResponseMeta meta = 1;
|
|
52
|
+
oneof outcome {
|
|
53
|
+
ScopeServiceListSessionsValue value = 2;
|
|
54
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
55
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
reserved 5 to 9;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message ScopeServiceGetSessionRequest {
|
|
62
|
+
arcforges.foundation.v1.RequestMeta meta = 1;
|
|
63
|
+
reserved 2 to 9;
|
|
64
|
+
arcforges.foundation.v1.Id session_id = 10 [json_name = "sessionId"];
|
|
65
|
+
arcforges.foundation.v1.Revision min_revision = 11 [json_name = "minRevision"];
|
|
66
|
+
}
|
|
67
|
+
message ScopeServiceGetSessionValue {
|
|
68
|
+
ScopeMetadata session = 10;
|
|
69
|
+
arcforges.foundation.v1.Revision revision = 11;
|
|
70
|
+
arcforges.foundation.v1.Instant committed_at = 12 [json_name = "committedAt"];
|
|
71
|
+
}
|
|
72
|
+
message ScopeServiceGetSessionResponse {
|
|
73
|
+
arcforges.foundation.v1.ResponseMeta meta = 1;
|
|
74
|
+
oneof outcome {
|
|
75
|
+
ScopeServiceGetSessionValue value = 2;
|
|
76
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
77
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
reserved 5 to 9;
|
|
81
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
|
|
4
|
+
package arcforges.publicapi.v1;
|
|
5
|
+
|
|
6
|
+
import "arcforges/foundation/v1/foundation.proto";
|
|
7
|
+
import "arcforges/publicapi/v1/content.proto";
|
|
8
|
+
|
|
9
|
+
option csharp_namespace = "ArcForges.Contracts.PublicApi.V1";
|
|
10
|
+
option java_package = "io.github.arcforges.contracts.publicapi.v1";
|
|
11
|
+
option java_multiple_files = true;
|
|
12
|
+
option java_outer_classname = "SupportProto";
|
|
13
|
+
|
|
14
|
+
// Public customer support, notification, preference and policy projections.
|
|
15
|
+
// Owner authorization and persistence remain outside this generated contract.
|
|
16
|
+
service SupportService {
|
|
17
|
+
rpc CreateCase(SupportServiceCreateCaseRequest) returns (SupportServiceCreateCaseResponse);
|
|
18
|
+
rpc ListCases(SupportServiceListCasesRequest) returns (SupportServiceListCasesResponse);
|
|
19
|
+
rpc AppendMessage(SupportServiceAppendMessageRequest) returns (SupportServiceAppendMessageResponse);
|
|
20
|
+
rpc DecideAccess(SupportServiceDecideAccessRequest) returns (SupportServiceDecideAccessResponse);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
service NotificationService {
|
|
24
|
+
rpc List(NotificationServiceListRequest) returns (NotificationServiceListResponse);
|
|
25
|
+
rpc Acknowledge(NotificationServiceAcknowledgeRequest) returns (NotificationServiceAcknowledgeResponse);
|
|
26
|
+
rpc RegisterPush(NotificationServiceRegisterPushRequest) returns (NotificationServiceRegisterPushResponse);
|
|
27
|
+
rpc UnregisterPush(NotificationServiceUnregisterPushRequest) returns (NotificationServiceUnregisterPushResponse);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
service PreferenceService {
|
|
31
|
+
rpc Put(PreferenceServicePutRequest) returns (PreferenceServicePutResponse);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
service PolicyService {
|
|
35
|
+
rpc GetBundle(PolicyServiceGetBundleRequest) returns (PolicyServiceGetBundleResponse);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message NotificationView {
|
|
39
|
+
arcforges.foundation.v1.Id notification_id = 1 [json_name = "notificationId"];
|
|
40
|
+
optional string kind = 2 [json_name = "kind"];
|
|
41
|
+
optional string durability = 3 [json_name = "durability"];
|
|
42
|
+
optional string message_key = 4 [json_name = "messageKey"];
|
|
43
|
+
arcforges.foundation.v1.AggregateRef target = 5 [json_name = "target"];
|
|
44
|
+
optional string state = 6 [json_name = "state"];
|
|
45
|
+
arcforges.foundation.v1.Instant created_at = 7 [json_name = "createdAt"];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message PolicyBundle {
|
|
49
|
+
optional string version = 1 [json_name = "version"];
|
|
50
|
+
arcforges.foundation.v1.Instant issued_at = 2 [json_name = "issuedAt"];
|
|
51
|
+
arcforges.foundation.v1.Instant expires_at = 3 [json_name = "expiresAt"];
|
|
52
|
+
optional bytes body = 4 [json_name = "body"];
|
|
53
|
+
optional bytes signature = 5 [json_name = "signature"];
|
|
54
|
+
optional string key_id = 6 [json_name = "keyId"];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message SupportServiceCreateCaseRequest {
|
|
58
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
59
|
+
reserved 2 to 9;
|
|
60
|
+
arcforges.foundation.v1.Id case_id = 10 [json_name = "caseId"];
|
|
61
|
+
optional string subject = 11 [json_name = "subject"];
|
|
62
|
+
optional string message = 12 [json_name = "message"];
|
|
63
|
+
arcforges.foundation.v1.ResourceRef diagnostic = 13 [json_name = "diagnostic"];
|
|
64
|
+
optional string category = 14 [json_name = "category"];
|
|
65
|
+
arcforges.foundation.v1.Id related_action_id = 15 [json_name = "relatedActionId"];
|
|
66
|
+
}
|
|
67
|
+
message SupportServiceCreateCaseValue {
|
|
68
|
+
SupportCase case = 10 [json_name = "case"];
|
|
69
|
+
}
|
|
70
|
+
message SupportServiceCreateCaseResponse {
|
|
71
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
72
|
+
oneof outcome {
|
|
73
|
+
SupportServiceCreateCaseValue value = 2 [json_name = "value"];
|
|
74
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
75
|
+
}
|
|
76
|
+
reserved 4 to 9;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message SupportServiceListCasesRequest {
|
|
80
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
81
|
+
reserved 2 to 9;
|
|
82
|
+
arcforges.foundation.v1.PageRequest page = 10 [json_name = "page"];
|
|
83
|
+
}
|
|
84
|
+
message SupportServiceListCasesValue {
|
|
85
|
+
repeated SupportCase items = 10 [json_name = "items"];
|
|
86
|
+
arcforges.foundation.v1.PageState page = 11 [json_name = "page"];
|
|
87
|
+
}
|
|
88
|
+
message SupportServiceListCasesResponse {
|
|
89
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
90
|
+
oneof outcome {
|
|
91
|
+
SupportServiceListCasesValue value = 2 [json_name = "value"];
|
|
92
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
93
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
94
|
+
}
|
|
95
|
+
reserved 5 to 9;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message SupportServiceAppendMessageRequest {
|
|
99
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
100
|
+
reserved 2 to 9;
|
|
101
|
+
arcforges.foundation.v1.Id case_id = 10 [json_name = "caseId"];
|
|
102
|
+
arcforges.foundation.v1.Id message_id = 11 [json_name = "messageId"];
|
|
103
|
+
optional string text = 12 [json_name = "text"];
|
|
104
|
+
}
|
|
105
|
+
message SupportServiceAppendMessageValue {
|
|
106
|
+
SupportCase case = 10 [json_name = "case"];
|
|
107
|
+
}
|
|
108
|
+
message SupportServiceAppendMessageResponse {
|
|
109
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
110
|
+
oneof outcome {
|
|
111
|
+
SupportServiceAppendMessageValue value = 2 [json_name = "value"];
|
|
112
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
113
|
+
}
|
|
114
|
+
reserved 4 to 9;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message SupportServiceDecideAccessRequest {
|
|
118
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
119
|
+
reserved 2 to 9;
|
|
120
|
+
arcforges.foundation.v1.Id access_id = 10 [json_name = "accessId"];
|
|
121
|
+
optional string proposal_hash = 11 [json_name = "proposalHash"];
|
|
122
|
+
optional bool approve = 12 [json_name = "approve"];
|
|
123
|
+
}
|
|
124
|
+
message SupportServiceDecideAccessValue {
|
|
125
|
+
arcforges.foundation.v1.Receipt receipt = 10 [json_name = "receipt"];
|
|
126
|
+
}
|
|
127
|
+
message SupportServiceDecideAccessResponse {
|
|
128
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
129
|
+
oneof outcome {
|
|
130
|
+
SupportServiceDecideAccessValue value = 2 [json_name = "value"];
|
|
131
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
132
|
+
}
|
|
133
|
+
reserved 4 to 9;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message NotificationServiceListRequest {
|
|
137
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
138
|
+
reserved 2 to 9;
|
|
139
|
+
arcforges.foundation.v1.PageRequest page = 10 [json_name = "page"];
|
|
140
|
+
}
|
|
141
|
+
message NotificationServiceListValue {
|
|
142
|
+
repeated NotificationView items = 10 [json_name = "items"];
|
|
143
|
+
arcforges.foundation.v1.PageState page = 11 [json_name = "page"];
|
|
144
|
+
}
|
|
145
|
+
message NotificationServiceListResponse {
|
|
146
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
147
|
+
oneof outcome {
|
|
148
|
+
NotificationServiceListValue value = 2 [json_name = "value"];
|
|
149
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
150
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
151
|
+
}
|
|
152
|
+
reserved 5 to 9;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message NotificationServiceAcknowledgeRequest {
|
|
156
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
157
|
+
reserved 2 to 9;
|
|
158
|
+
arcforges.foundation.v1.Id notification_id = 10 [json_name = "notificationId"];
|
|
159
|
+
}
|
|
160
|
+
message NotificationServiceAcknowledgeValue {
|
|
161
|
+
arcforges.foundation.v1.Receipt receipt = 10 [json_name = "receipt"];
|
|
162
|
+
}
|
|
163
|
+
message NotificationServiceAcknowledgeResponse {
|
|
164
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
165
|
+
oneof outcome {
|
|
166
|
+
NotificationServiceAcknowledgeValue value = 2 [json_name = "value"];
|
|
167
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
168
|
+
}
|
|
169
|
+
reserved 4 to 9;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message NotificationServiceRegisterPushRequest {
|
|
173
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
174
|
+
reserved 2 to 9;
|
|
175
|
+
arcforges.foundation.v1.Id installation_id = 10 [json_name = "installationId"];
|
|
176
|
+
optional string platform = 11 [json_name = "platform"];
|
|
177
|
+
optional string token = 12 [json_name = "token"];
|
|
178
|
+
}
|
|
179
|
+
message NotificationServiceRegisterPushValue {
|
|
180
|
+
arcforges.foundation.v1.Id registration_id = 10 [json_name = "registrationId"];
|
|
181
|
+
}
|
|
182
|
+
message NotificationServiceRegisterPushResponse {
|
|
183
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
184
|
+
oneof outcome {
|
|
185
|
+
NotificationServiceRegisterPushValue value = 2 [json_name = "value"];
|
|
186
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
187
|
+
}
|
|
188
|
+
reserved 4 to 9;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message NotificationServiceUnregisterPushRequest {
|
|
192
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
193
|
+
reserved 2 to 9;
|
|
194
|
+
arcforges.foundation.v1.Id registration_id = 10 [json_name = "registrationId"];
|
|
195
|
+
}
|
|
196
|
+
message NotificationServiceUnregisterPushValue {
|
|
197
|
+
arcforges.foundation.v1.Receipt receipt = 10 [json_name = "receipt"];
|
|
198
|
+
}
|
|
199
|
+
message NotificationServiceUnregisterPushResponse {
|
|
200
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
201
|
+
oneof outcome {
|
|
202
|
+
NotificationServiceUnregisterPushValue value = 2 [json_name = "value"];
|
|
203
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
204
|
+
}
|
|
205
|
+
reserved 4 to 9;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
message PreferenceServicePutRequest {
|
|
209
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
210
|
+
reserved 2 to 9;
|
|
211
|
+
PreferenceRecord value = 10 [json_name = "value"];
|
|
212
|
+
}
|
|
213
|
+
message PreferenceServicePutValue {
|
|
214
|
+
PreferenceRecord value = 10 [json_name = "value"];
|
|
215
|
+
}
|
|
216
|
+
message PreferenceServicePutResponse {
|
|
217
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
218
|
+
oneof outcome {
|
|
219
|
+
PreferenceServicePutValue value = 2 [json_name = "value"];
|
|
220
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
221
|
+
}
|
|
222
|
+
reserved 4 to 9;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
message PolicyServiceGetBundleRequest {
|
|
226
|
+
arcforges.foundation.v1.RequestMeta meta = 1 [json_name = "meta"];
|
|
227
|
+
reserved 2 to 9;
|
|
228
|
+
arcforges.foundation.v1.Id installation_id = 10 [json_name = "installationId"];
|
|
229
|
+
optional string last_version = 11 [json_name = "lastVersion"];
|
|
230
|
+
}
|
|
231
|
+
message PolicyServiceGetBundleValue {
|
|
232
|
+
PolicyBundle bundle = 10 [json_name = "bundle"];
|
|
233
|
+
}
|
|
234
|
+
message PolicyServiceGetBundleResponse {
|
|
235
|
+
arcforges.foundation.v1.ResponseMeta meta = 1 [json_name = "meta"];
|
|
236
|
+
oneof outcome {
|
|
237
|
+
PolicyServiceGetBundleValue value = 2 [json_name = "value"];
|
|
238
|
+
arcforges.foundation.v1.ArcError error = 3;
|
|
239
|
+
arcforges.foundation.v1.EncodedBodyRef encoded_body = 4 [json_name = "encodedBody"];
|
|
240
|
+
}
|
|
241
|
+
reserved 5 to 9;
|
|
242
|
+
}
|