noie-nds-api 3.0.3

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7f4ee10694ddbc3d6c12dc58a31ed942780adc8fd9765f8f8766343cd70d2162
4
+ data.tar.gz: 535f2aaad6258e7991245fbe0fc07160867b743514c0e687b07bd6dc196437d6
5
+ SHA512:
6
+ metadata.gz: 47fac51888dae909eae0234654bfff1288e4aa130c7a6f1fb31b40ff381914187c7e1d19776aa3afae7df879e479a50ac0a290946098c254a2fb2f5c584250cb
7
+ data.tar.gz: 79d50f640af4247915b9b70f2cdadbb7c5faadc5fa1a250aefe8cd9bd3a05c3cf8765b85b0326bbaab39ba87e5fcec290ba746709870baaf30d64bf0fdc5231e
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # NDS-API - Ruby SDK
2
+
3
+ [![RubyGems](https://img.shields.io/gem/v/noie-nds-api.svg)](https://rubygems.org/gems/noie-nds-api)
4
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](../LICENSE)
5
+
6
+ Protocol SDK for **NDS-API** (NoieDigitalSystem) on Ruby.
7
+
8
+ - Protocol spec: `../spec/proto/`
9
+ - Repo docs index: [`../docs/README.md`](../docs/README.md)
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ gem install noie-nds-api -v 3.0.3
15
+ ```
16
+
17
+ ## Features
18
+
19
+ - **Protocol types**: Identity / Asset / Event / Transaction / Result / Context
20
+ - **Proto compatibility**: matches the NDS Protocol Buffers specification
21
+ - **Runtime-agnostic**: no Bukkit/Paper, no database, no network stack dependencies
22
+
23
+ ## Quick Start
24
+
25
+ ### Decimal
26
+
27
+ ```ruby
28
+ require "noie_nds_api"
29
+
30
+ d = Nds::Common::Decimal.new(value: "1.23", scale: 2)
31
+ puts d.value
32
+ ```
33
+
34
+ ## Packages
35
+
36
+ | Gem | Description |
37
+ |-----|-------------|
38
+ | `noie-nds-api` | Ruby protobuf DTOs (google-protobuf runtime) |
39
+
40
+ ## Compatibility
41
+
42
+ - Ruby 4.0.1
43
+
44
+ ## Notes (generated code)
45
+
46
+ - Protobuf DTOs are generated from `../spec/proto/**` via Buf.
47
+ - Generation template: `../spec/buf.gen.yaml`
48
+
49
+
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/asset/asset.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'nds/common/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x15nds/asset/asset.proto\x12\tnds.asset\x1a\x17nds/common/common.proto\"J\n\x07\x41ssetId\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12+\n\x05scope\x18\x02 \x01(\x0e\x32\x15.nds.asset.AssetScopeR\x05scope\"\x99\x03\n\x08NdsAsset\x12-\n\x08\x61sset_id\x18\x01 \x01(\x0b\x32\x12.nds.asset.AssetIdR\x07\x61ssetId\x12\x31\n\x04tags\x18\x02 \x03(\x0b\x32\x1d.nds.asset.NdsAsset.TagsEntryR\x04tags\x12=\n\x08metadata\x18\x03 \x03(\x0b\x32!.nds.asset.NdsAsset.MetadataEntryR\x08metadata\x12.\n\x05limit\x18\x04 \x01(\x0b\x32\x13.nds.common.DecimalH\x00R\x05limit\x88\x01\x01\x12\x1d\n\ncreated_at\x18\x05 \x01(\x03R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x06 \x01(\x03R\tupdatedAt\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06_limit*q\n\nAssetScope\x12\x1b\n\x17\x41SSET_SCOPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41SSET_SCOPE_PLAYER\x10\x01\x12\x16\n\x12\x41SSET_SCOPE_SERVER\x10\x02\x12\x16\n\x12\x41SSET_SCOPE_GLOBAL\x10\x03\x42\xb2\x01\n4noie.linmimeng.noiedigitalsystem.api.proto.nds.assetB\nAssetProtoP\x01Z)github.com/misty4119/nds-api/Go/nds/asset\xa2\x02\x03NAX\xaa\x02\tNds.Asset\xca\x02\tNds\\Asset\xe2\x02\x15Nds\\Asset\\GPBMetadata\xea\x02\nNds::Assetb\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Nds
16
+ module Asset
17
+ AssetId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.asset.AssetId").msgclass
18
+ NdsAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.asset.NdsAsset").msgclass
19
+ AssetScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.asset.AssetScope").enummodule
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/audit/rationale.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'nds/common/common_pb'
8
+ require 'nds/event/event_pb'
9
+
10
+
11
+ descriptor_data = "\n\x19nds/audit/rationale.proto\x12\tnds.audit\x1a\x17nds/common/common.proto\x1a\x15nds/event/event.proto\"\xdd\x03\n\x0cNdsRationale\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12\x38\n\nconfidence\x18\x02 \x01(\x0b\x32\x13.nds.common.DecimalH\x00R\nconfidence\x88\x01\x01\x12!\n\x0cthought_path\x18\x03 \x03(\tR\x0bthoughtPath\x12@\n\x12\x65vidence_event_ids\x18\x04 \x03(\x0b\x32\x12.nds.event.EventIdR\x10\x65videnceEventIds\x12?\n\revidence_refs\x18\x08 \x03(\x0b\x32\x1a.nds.audit.NdsRationaleRefR\x0c\x65videnceRefs\x12\x37\n\nrisk_score\x18\x05 \x01(\x0b\x32\x13.nds.common.DecimalH\x01R\triskScore\x88\x01\x01\x12\x41\n\x08metadata\x18\x06 \x03(\x0b\x32%.nds.audit.NdsRationale.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\r\n\x0b_confidenceB\r\n\x0b_risk_score\"u\n\x0fNdsRationaleRef\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x17\n\x04hash\x18\x02 \x01(\tH\x00R\x04hash\x88\x01\x01\x12 \n\tmime_type\x18\x03 \x01(\tH\x01R\x08mimeType\x88\x01\x01\x42\x07\n\x05_hashB\x0c\n\n_mime_typeB\xb6\x01\n4noie.linmimeng.noiedigitalsystem.api.proto.nds.auditB\x0eRationaleProtoP\x01Z)github.com/misty4119/nds-api/Go/nds/audit\xa2\x02\x03NAX\xaa\x02\tNds.Audit\xca\x02\tNds\\Audit\xe2\x02\x15Nds\\Audit\\GPBMetadata\xea\x02\nNds::Auditb\x06proto3"
12
+
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Nds
17
+ module Audit
18
+ NdsRationale = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.audit.NdsRationale").msgclass
19
+ NdsRationaleRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.audit.NdsRationaleRef").msgclass
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/common/common.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x17nds/common/common.proto\x12\nnds.common\"5\n\x07\x44\x65\x63imal\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\"`\n\tNdsResult\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12/\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x14.nds.common.NdsErrorH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error\"\xb1\x01\n\x08NdsError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12;\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32!.nds.common.NdsError.DetailsEntryR\x07\x64\x65tails\x1a:\n\x0c\x44\x65tailsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x01\n\x08Metadata\x12;\n\x07\x65ntries\x18\x01 \x03(\x0b\x32!.nds.common.Metadata.EntriesEntryR\x07\x65ntries\x1a:\n\x0c\x45ntriesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*\xce\x04\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x45RROR_CODE_ASSET_NOT_FOUND\x10\x01\x12#\n\x1f\x45RROR_CODE_ASSET_ALREADY_EXISTS\x10\x02\x12#\n\x1f\x45RROR_CODE_INSUFFICIENT_BALANCE\x10\x03\x12#\n\x1f\x45RROR_CODE_ASSET_LIMIT_EXCEEDED\x10\x04\x12!\n\x1d\x45RROR_CODE_IDENTITY_NOT_FOUND\x10\n\x12\x1f\n\x1b\x45RROR_CODE_IDENTITY_INVALID\x10\x0b\x12!\n\x1d\x45RROR_CODE_TRANSACTION_FAILED\x10\x14\x12&\n\"ERROR_CODE_TRANSACTION_ROLLED_BACK\x10\x15\x12$\n ERROR_CODE_CONSISTENCY_VIOLATION\x10\x16\x12%\n!ERROR_CODE_SYSTEM_NOT_INITIALIZED\x10\x1e\x12\x1b\n\x17\x45RROR_CODE_SYSTEM_ERROR\x10\x1f\x12\x16\n\x12\x45RROR_CODE_TIMEOUT\x10 \x12\x1f\n\x1b\x45RROR_CODE_INVALID_ARGUMENT\x10(\x12 \n\x1c\x45RROR_CODE_PERMISSION_DENIED\x10)\x12\x1f\n\x1b\x45RROR_CODE_POLICY_VIOLATION\x10*\x12!\n\x1d\x45RROR_CODE_RATIONALE_REQUIRED\x10+B\xb9\x01\n5noie.linmimeng.noiedigitalsystem.api.proto.nds.commonB\x0b\x43ommonProtoP\x01Z*github.com/misty4119/nds-api/Go/nds/common\xa2\x02\x03NCX\xaa\x02\nNds.Common\xca\x02\nNds\\Common\xe2\x02\x16Nds\\Common\\GPBMetadata\xea\x02\x0bNds::Commonb\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Common
15
+ Decimal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.Decimal").msgclass
16
+ NdsResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.NdsResult").msgclass
17
+ NdsError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.NdsError").msgclass
18
+ Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.Metadata").msgclass
19
+ ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.ErrorCode").enummodule
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/common/v1/common_v1.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x1dnds/common/v1/common_v1.proto\x12\rnds.common.v1\"\x7f\n\x0eRequestContext\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\'\n\x0fidempotency_key\x18\x02 \x01(\tR\x0eidempotencyKey\x12%\n\x0e\x63orrelation_id\x18\x03 \x01(\x0cR\rcorrelationId\"\xc1\x02\n\x0b\x45rrorStatus\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x38\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32\x1c.nds.common.v1.ErrorCategoryR\x08\x63\x61tegory\x12\x41\n\x07\x64\x65tails\x18\x04 \x03(\x0b\x32\'.nds.common.v1.ErrorStatus.DetailsEntryR\x07\x64\x65tails\x12\x33\n\x13retry_after_seconds\x18\x05 \x01(\x05H\x00R\x11retryAfterSeconds\x88\x01\x01\x1a:\n\x0c\x44\x65tailsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x16\n\x14_retry_after_seconds*\xbe\x01\n\rErrorCategory\x12\x1e\n\x1a\x45RROR_CATEGORY_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x45RROR_CATEGORY_RETRYABLE\x10\x01\x12\x1b\n\x17\x45RROR_CATEGORY_CONFLICT\x10\x02\x12\x19\n\x15\x45RROR_CATEGORY_POLICY\x10\x03\x12\x1d\n\x19\x45RROR_CATEGORY_VALIDATION\x10\x04\x12\x18\n\x14\x45RROR_CATEGORY_FATAL\x10\x05\x42\xd7\x01\n8noie.linmimeng.noiedigitalsystem.api.proto.nds.common.v1B\rCommonV1ProtoP\x01Z6github.com/misty4119/nds-api/Go/nds/common/v1;commonv1\xa2\x02\x03NCX\xaa\x02\rNds.Common.V1\xca\x02\rNds\\Common\\V1\xe2\x02\x19Nds\\Common\\V1\\GPBMetadata\xea\x02\x0fNds::Common::V1b\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Common
15
+ module V1
16
+ RequestContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.v1.RequestContext").msgclass
17
+ ErrorStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.v1.ErrorStatus").msgclass
18
+ ErrorCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.common.v1.ErrorCategory").enummodule
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/context/context.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x19nds/context/context.proto\x12\x0bnds.context\"\xc4\x02\n\nNdsContext\x12\x19\n\x08trace_id\x18\x01 \x01(\tR\x07traceId\x12%\n\x0e\x63orrelation_id\x18\x02 \x01(\tR\rcorrelationId\x12\x1c\n\x07span_id\x18\x03 \x01(\tH\x00R\x06spanId\x88\x01\x01\x12)\n\x0eparent_span_id\x18\x04 \x01(\tH\x01R\x0cparentSpanId\x88\x01\x01\x12\x35\n\x04meta\x18\x05 \x03(\x0b\x32!.nds.context.NdsContext.MetaEntryR\x04meta\x12\x1c\n\ttimestamp\x18\x06 \x01(\x03R\ttimestamp\x1a\x37\n\tMetaEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\n\n\x08_span_idB\x11\n\x0f_parent_span_idB\xc0\x01\n6noie.linmimeng.noiedigitalsystem.api.proto.nds.contextB\x0c\x43ontextProtoP\x01Z+github.com/misty4119/nds-api/Go/nds/context\xa2\x02\x03NCX\xaa\x02\x0bNds.Context\xca\x02\x0bNds\\Context\xe2\x02\x17Nds\\Context\\GPBMetadata\xea\x02\x0cNds::Contextb\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Context
15
+ NdsContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.context.NdsContext").msgclass
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/event/event.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf/struct_pb'
9
+ require 'nds/identity/identity_pb'
10
+ require 'nds/context/context_pb'
11
+
12
+
13
+ descriptor_data = "\n\x15nds/event/event.proto\x12\tnds.event\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1bnds/identity/identity.proto\x1a\x19nds/context/context.proto\"\x1f\n\x07\x45ventId\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"9\n\nNdsPayload\x12+\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x04\x64\x61ta\"\xde\x03\n\x08NdsEvent\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x12.nds.event.EventIdR\x02id\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12/\n\x05\x61\x63tor\x18\x03 \x01(\x0b\x32\x19.nds.identity.NdsIdentityR\x05\x61\x63tor\x12(\n\x04type\x18\x04 \x01(\x0e\x32\x14.nds.event.EventTypeR\x04type\x12/\n\x07payload\x18\x05 \x01(\x0b\x32\x15.nds.event.NdsPayloadR\x07payload\x12%\n\x0eschema_version\x18\x06 \x01(\x05R\rschemaVersion\x12=\n\x08metadata\x18\x07 \x03(\x0b\x32!.nds.event.NdsEvent.MetadataEntryR\x08metadata\x12\x36\n\x07\x63ontext\x18\x08 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\n\n\x08_context*\x8d\x02\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45VENT_TYPE_TRANSACTION\x10\x01\x12\x1c\n\x18\x45VENT_TYPE_ASSET_CREATED\x10\x02\x12\x1c\n\x18\x45VENT_TYPE_ASSET_UPDATED\x10\x03\x12\x1c\n\x18\x45VENT_TYPE_ASSET_DELETED\x10\x04\x12\x1f\n\x1b\x45VENT_TYPE_IDENTITY_CREATED\x10\x05\x12\x1f\n\x1b\x45VENT_TYPE_IDENTITY_UPDATED\x10\x06\x12\x15\n\x11\x45VENT_TYPE_SYSTEM\x10\x07\x12\x15\n\x11\x45VENT_TYPE_CUSTOM\x10\x63\x42\xb2\x01\n4noie.linmimeng.noiedigitalsystem.api.proto.nds.eventB\nEventProtoP\x01Z)github.com/misty4119/nds-api/Go/nds/event\xa2\x02\x03NEX\xaa\x02\tNds.Event\xca\x02\tNds\\Event\xe2\x02\x15Nds\\Event\\GPBMetadata\xea\x02\nNds::Eventb\x06proto3"
14
+
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
17
+
18
+ module Nds
19
+ module Event
20
+ EventId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.EventId").msgclass
21
+ NdsPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.NdsPayload").msgclass
22
+ NdsEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.NdsEvent").msgclass
23
+ EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.EventType").enummodule
24
+ end
25
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/event/v1/event_v1.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/any_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'nds/common/v1/common_v1_pb'
10
+ require 'nds/identity/v1/identity_v1_pb'
11
+
12
+
13
+ descriptor_data = "\n\x1bnds/event/v1/event_v1.proto\x12\x0cnds.event.v1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dnds/common/v1/common_v1.proto\x1a!nds/identity/v1/identity_v1.proto\"\x1e\n\x06\x43ursor\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\"\xb3\x04\n\rEventEnvelope\x12\x19\n\x08\x65vent_id\x18\x01 \x01(\x0cR\x07\x65ventId\x12,\n\x06\x63ursor\x18\x02 \x01(\x0b\x32\x14.nds.event.v1.CursorR\x06\x63ursor\x12;\n\x0boccurred_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x30\n\x05\x61\x63tor\x18\n \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdR\x05\x61\x63tor\x12\x35\n\x05owner\x18\x0b \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdH\x00R\x05owner\x88\x01\x01\x12+\n\x04type\x18\x14 \x01(\x0e\x32\x17.nds.event.v1.EventTypeR\x04type\x12%\n\x0eschema_version\x18\x15 \x01(\x05R\rschemaVersion\x12.\n\x07payload\x18\x1e \x01(\x0b\x32\x14.google.protobuf.AnyR\x07payload\x12\x34\n\nextensions\x18\x1f \x03(\x0b\x32\x14.google.protobuf.AnyR\nextensions\x12\x34\n\x03\x63tx\x18( \x01(\x0b\x32\x1d.nds.common.v1.RequestContextH\x01R\x03\x63tx\x88\x01\x01\x12\"\n\nrequest_id\x18) \x01(\tH\x02R\trequestId\x88\x01\x01\x42\x08\n\x06_ownerB\x06\n\x04_ctxB\r\n\x0b_request_id*\xba\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\"\n\x1e\x45VENT_TYPE_LEDGER_TX_COMMITTED\x10\x01\x12%\n!EVENT_TYPE_LEDGER_BALANCE_CHANGED\x10\x02\x12\x1d\n\x19\x45VENT_TYPE_IDENTITY_BOUND\x10\n\x12\'\n#EVENT_TYPE_MEMORY_ARTIFACT_ANCHORED\x10\x14\x42\xcf\x01\n7noie.linmimeng.noiedigitalsystem.api.proto.nds.event.v1B\x0c\x45ventV1ProtoP\x01Z4github.com/misty4119/nds-api/Go/nds/event/v1;eventv1\xa2\x02\x03NEX\xaa\x02\x0cNds.Event.V1\xca\x02\x0cNds\\Event\\V1\xe2\x02\x18Nds\\Event\\V1\\GPBMetadata\xea\x02\x0eNds::Event::V1b\x06proto3"
14
+
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
17
+
18
+ module Nds
19
+ module Event
20
+ module V1
21
+ Cursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.v1.Cursor").msgclass
22
+ EventEnvelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.v1.EventEnvelope").msgclass
23
+ EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.event.v1.EventType").enummodule
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/identity/identity.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x1bnds/identity/identity.proto\x12\x0cnds.identity\"\xff\x01\n\x0bNdsIdentity\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12.\n\x04type\x18\x02 \x01(\x0e\x32\x1a.nds.identity.IdentityTypeR\x04type\x12\x43\n\x08metadata\x18\x03 \x03(\x0b\x32\'.nds.identity.NdsIdentity.MetadataEntryR\x08metadata\x12.\n\x13\x61ttached_policy_ids\x18\n \x03(\tR\x11\x61ttachedPolicyIds\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*\x93\x01\n\x0cIdentityType\x12\x1d\n\x19IDENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14IDENTITY_TYPE_PLAYER\x10\x01\x12\x18\n\x14IDENTITY_TYPE_SYSTEM\x10\x02\x12\x14\n\x10IDENTITY_TYPE_AI\x10\x03\x12\x1a\n\x16IDENTITY_TYPE_EXTERNAL\x10\x04\x42\xc7\x01\n7noie.linmimeng.noiedigitalsystem.api.proto.nds.identityB\rIdentityProtoP\x01Z,github.com/misty4119/nds-api/Go/nds/identity\xa2\x02\x03NIX\xaa\x02\x0cNds.Identity\xca\x02\x0cNds\\Identity\xe2\x02\x18Nds\\Identity\\GPBMetadata\xea\x02\rNds::Identityb\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Identity
15
+ NdsIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.NdsIdentity").msgclass
16
+ IdentityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.IdentityType").enummodule
17
+ end
18
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/identity/v1/identity_v1.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n!nds/identity/v1/identity_v1.proto\x12\x0fnds.identity.v1\"!\n\tPersonaId\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\"\xc4\x01\n\x16\x45xternalAccountBinding\x12=\n\x08provider\x18\x01 \x01(\x0e\x32!.nds.identity.v1.ExternalProviderR\x08provider\x12\x1f\n\x0b\x65xternal_id\x18\x02 \x01(\tR\nexternalId\x12%\n\x0everified_level\x18\x03 \x01(\x05R\rverifiedLevel\x12#\n\rbinding_proof\x18\x04 \x01(\x0cR\x0c\x62indingProof\"z\n\x07Persona\x12*\n\x02id\x18\x01 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdR\x02id\x12\x43\n\x08\x62indings\x18\x02 \x03(\x0b\x32\'.nds.identity.v1.ExternalAccountBindingR\x08\x62indings*\xaf\x01\n\x10\x45xternalProvider\x12!\n\x1d\x45XTERNAL_PROVIDER_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x45XTERNAL_PROVIDER_MINECRAFT\x10\x01\x12\x1d\n\x19\x45XTERNAL_PROVIDER_DISCORD\x10\x02\x12\x1a\n\x16\x45XTERNAL_PROVIDER_OIDC\x10\x03\x12\x1c\n\x18\x45XTERNAL_PROVIDER_DEVICE\x10\x04\x42\xe7\x01\n:noie.linmimeng.noiedigitalsystem.api.proto.nds.identity.v1B\x0fIdentityV1ProtoP\x01Z:github.com/misty4119/nds-api/Go/nds/identity/v1;identityv1\xa2\x02\x03NIX\xaa\x02\x0fNds.Identity.V1\xca\x02\x0fNds\\Identity\\V1\xe2\x02\x1bNds\\Identity\\V1\\GPBMetadata\xea\x02\x11Nds::Identity::V1b\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Identity
15
+ module V1
16
+ PersonaId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.v1.PersonaId").msgclass
17
+ ExternalAccountBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.v1.ExternalAccountBinding").msgclass
18
+ Persona = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.v1.Persona").msgclass
19
+ ExternalProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.identity.v1.ExternalProvider").enummodule
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/ledger/v1/ledger.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/any_pb'
8
+ require 'nds/common/v1/common_v1_pb'
9
+ require 'nds/event/v1/event_v1_pb'
10
+ require 'nds/identity/v1/identity_v1_pb'
11
+
12
+
13
+ descriptor_data = "\n\x1ands/ledger/v1/ledger.proto\x12\rnds.ledger.v1\x1a\x19google/protobuf/any.proto\x1a\x1dnds/common/v1/common_v1.proto\x1a\x1bnds/event/v1/event_v1.proto\x1a!nds/identity/v1/identity_v1.proto\"X\n\x05Money\x12#\n\rcurrency_code\x18\x01 \x01(\tR\x0c\x63urrencyCode\x12\x14\n\x05units\x18\x02 \x01(\x03R\x05units\x12\x14\n\x05nanos\x18\x03 \x01(\x05R\x05nanos\"c\n\nBalanceKey\x12\x30\n\x05owner\x18\x01 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdR\x05owner\x12#\n\rcurrency_code\x18\x02 \x01(\tR\x0c\x63urrencyCode\"~\n\x07\x42\x61lance\x12+\n\x03key\x18\x01 \x01(\x0b\x32\x19.nds.ledger.v1.BalanceKeyR\x03key\x12,\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x14.nds.ledger.v1.MoneyR\x06\x61mount\x12\x18\n\x07version\x18\x03 \x01(\x04R\x07version\"\xc3\x04\n\x18\x43reateTransactionRequest\x12\x30\n\x05\x61\x63tor\x18\x01 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdR\x05\x61\x63tor\x12\x37\n\x06source\x18\x02 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdH\x00R\x06source\x88\x01\x01\x12\x37\n\x06target\x18\x03 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdH\x01R\x06target\x88\x01\x01\x12,\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x14.nds.ledger.v1.MoneyR\x06\x61mount\x12/\n\x03\x63tx\x18\n \x01(\x0b\x32\x1d.nds.common.v1.RequestContextR\x03\x63tx\x12;\n\x17\x65xpected_source_version\x18\x0b \x01(\x04H\x02R\x15\x65xpectedSourceVersion\x88\x01\x01\x12;\n\x17\x65xpected_target_version\x18\x0c \x01(\x04H\x03R\x15\x65xpectedTargetVersion\x88\x01\x01\x12\x1b\n\x06reason\x18\x14 \x01(\tH\x04R\x06reason\x88\x01\x01\x12\x34\n\nextensions\x18\x1e \x03(\x0b\x32\x14.google.protobuf.AnyR\nextensionsB\t\n\x07_sourceB\t\n\x07_targetB\x1a\n\x18_expected_source_versionB\x1a\n\x18_expected_target_versionB\t\n\x07_reason\"\xc2\x01\n\x19\x43reateTransactionResponse\x12\x18\n\x05tx_id\x18\x01 \x01(\x0cH\x00R\x04txId\x88\x01\x01\x12\x36\n\x05\x65vent\x18\x02 \x01(\x0b\x32\x1b.nds.event.v1.EventEnvelopeH\x01R\x05\x65vent\x88\x01\x01\x12\x35\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1a.nds.common.v1.ErrorStatusH\x02R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_tx_idB\x08\n\x06_eventB\x08\n\x06_errorB\xd5\x01\n8noie.linmimeng.noiedigitalsystem.api.proto.nds.ledger.v1B\x0bLedgerProtoP\x01Z6github.com/misty4119/nds-api/Go/nds/ledger/v1;ledgerv1\xa2\x02\x03NLX\xaa\x02\rNds.Ledger.V1\xca\x02\rNds\\Ledger\\V1\xe2\x02\x19Nds\\Ledger\\V1\\GPBMetadata\xea\x02\x0fNds::Ledger::V1b\x06proto3"
14
+
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
17
+
18
+ module Nds
19
+ module Ledger
20
+ module V1
21
+ Money = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.ledger.v1.Money").msgclass
22
+ BalanceKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.ledger.v1.BalanceKey").msgclass
23
+ Balance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.ledger.v1.Balance").msgclass
24
+ CreateTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.ledger.v1.CreateTransactionRequest").msgclass
25
+ CreateTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.ledger.v1.CreateTransactionResponse").msgclass
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/memory/v1/memory.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'nds/identity/v1/identity_v1_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1ands/memory/v1/memory.proto\x12\rnds.memory.v1\x1a!nds/identity/v1/identity_v1.proto\":\n\x04Hash\x12\x1c\n\talgorithm\x18\x01 \x01(\tR\talgorithm\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value\"\xc8\x02\n\x0bMemoryProof\x12#\n\x0bproof_tx_id\x18\x01 \x01(\x0cH\x00R\tproofTxId\x88\x01\x01\x12)\n\x0eproof_event_id\x18\x02 \x01(\x0cH\x01R\x0cproofEventId\x88\x01\x01\x12\x36\n\x0c\x63ontent_hash\x18\n \x01(\x0b\x32\x13.nds.memory.v1.HashR\x0b\x63ontentHash\x12\x35\n\tprev_hash\x18\x0b \x01(\x0b\x32\x13.nds.memory.v1.HashH\x02R\x08prevHash\x88\x01\x01\x12\x39\n\x0bmerkle_root\x18\x0c \x01(\x0b\x32\x13.nds.memory.v1.HashH\x03R\nmerkleRoot\x88\x01\x01\x42\x0e\n\x0c_proof_tx_idB\x11\n\x0f_proof_event_idB\x0c\n\n_prev_hashB\x0e\n\x0c_merkle_root\"\xff\x02\n\x0eMemoryArtifact\x12\x0e\n\x02id\x18\x01 \x01(\x0cR\x02id\x12\x30\n\x05owner\x18\x02 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdR\x05owner\x12%\n\x0eschema_version\x18\x03 \x01(\x05R\rschemaVersion\x12!\n\tnarrative\x18\n \x01(\tH\x00R\tnarrative\x88\x01\x01\x12 \n\tembedding\x18\x0b \x03(\x02\x42\x02\x10\x01R\tembedding\x12\x30\n\x05proof\x18\x14 \x01(\x0b\x32\x1a.nds.memory.v1.MemoryProofR\x05proof\x12\x1a\n\x08redacted\x18\x1e \x01(\x08R\x08redacted\x12N\n\x10redaction_reason\x18\x1f \x01(\x0e\x32\x1e.nds.memory.v1.RedactionReasonH\x01R\x0fredactionReason\x88\x01\x01\x42\x0c\n\n_narrativeB\x13\n\x11_redaction_reason*\x92\x01\n\x0fRedactionReason\x12 \n\x1cREDACTION_REASON_UNSPECIFIED\x10\x00\x12$\n REDACTION_REASON_PRIVACY_REQUEST\x10\x01\x12\x1b\n\x17REDACTION_REASON_POLICY\x10\x02\x12\x1a\n\x16REDACTION_REASON_LEGAL\x10\x03\x42\xd5\x01\n8noie.linmimeng.noiedigitalsystem.api.proto.nds.memory.v1B\x0bMemoryProtoP\x01Z6github.com/misty4119/nds-api/Go/nds/memory/v1;memoryv1\xa2\x02\x03NMX\xaa\x02\rNds.Memory.V1\xca\x02\rNds\\Memory\\V1\xe2\x02\x19Nds\\Memory\\V1\\GPBMetadata\xea\x02\x0fNds::Memory::V1b\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Nds
16
+ module Memory
17
+ module V1
18
+ Hash = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.memory.v1.Hash").msgclass
19
+ MemoryProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.memory.v1.MemoryProof").msgclass
20
+ MemoryArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.memory.v1.MemoryArtifact").msgclass
21
+ RedactionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.memory.v1.RedactionReason").enummodule
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/metadata/v1/metadata.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/any_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1ends/metadata/v1/metadata.proto\x12\x0fnds.metadata.v1\x1a\x19google/protobuf/any.proto\"\xae\x01\n\x0f\x44isplayMetadata\x12&\n\x0c\x64isplay_name\x18\x01 \x01(\tH\x00R\x0b\x64isplayName\x88\x01\x01\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x1e\n\x08icon_uri\x18\x03 \x01(\tH\x02R\x07iconUri\x88\x01\x01\x42\x0f\n\r_display_nameB\x0e\n\x0c_descriptionB\x0b\n\t_icon_uri\"\xac\x01\n\x0eSourceMetadata\x12(\n\rsource_system\x18\x01 \x01(\tH\x00R\x0csourceSystem\x88\x01\x01\x12$\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\tH\x01R\ncampaignId\x88\x01\x01\x12\x1c\n\x07task_id\x18\x03 \x01(\tH\x02R\x06taskId\x88\x01\x01\x42\x10\n\x0e_source_systemB\x0e\n\x0c_campaign_idB\n\n\x08_task_id\"\xf9\x02\n\x0eMetadataBundle\x12?\n\x07\x64isplay\x18\x01 \x01(\x0b\x32 .nds.metadata.v1.DisplayMetadataH\x00R\x07\x64isplay\x88\x01\x01\x12<\n\x06source\x18\x02 \x01(\x0b\x32\x1f.nds.metadata.v1.SourceMetadataH\x01R\x06source\x88\x01\x01\x12\x34\n\nextensions\x18\n \x03(\x0b\x32\x14.google.protobuf.AnyR\nextensions\x12Y\n\x0elegacy_entries\x18\x63 \x03(\x0b\x32\x32.nds.metadata.v1.MetadataBundle.LegacyEntriesEntryR\rlegacyEntries\x1a@\n\x12LegacyEntriesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\n\n\x08_displayB\t\n\x07_sourceB\xe5\x01\n:noie.linmimeng.noiedigitalsystem.api.proto.nds.metadata.v1B\rMetadataProtoP\x01Z:github.com/misty4119/nds-api/Go/nds/metadata/v1;metadatav1\xa2\x02\x03NMX\xaa\x02\x0fNds.Metadata.V1\xca\x02\x0fNds\\Metadata\\V1\xe2\x02\x1bNds\\Metadata\\V1\\GPBMetadata\xea\x02\x11Nds::Metadata::V1b\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Nds
16
+ module Metadata
17
+ module V1
18
+ DisplayMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.metadata.v1.DisplayMetadata").msgclass
19
+ SourceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.metadata.v1.SourceMetadata").msgclass
20
+ MetadataBundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.metadata.v1.MetadataBundle").msgclass
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/policy/policy.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x17nds/policy/policy.proto\x12\nnds.policy\"\xe2\x02\n\tNdsPolicy\x12\x1b\n\tpolicy_id\x18\x01 \x01(\tR\x08policyId\x12\x1f\n\x0bpolicy_type\x18\x02 \x01(\tR\npolicyType\x12\x39\n\x06params\x18\x03 \x03(\x0b\x32!.nds.policy.NdsPolicy.ParamsEntryR\x06params\x12#\n\rcustom_config\x18\x04 \x01(\x0cR\x0c\x63ustomConfig\x12?\n\x08metadata\x18\x05 \x03(\x0b\x32#.nds.policy.NdsPolicy.MetadataEntryR\x08metadata\x1a\x39\n\x0bParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xb9\x01\n5noie.linmimeng.noiedigitalsystem.api.proto.nds.policyB\x0bPolicyProtoP\x01Z*github.com/misty4119/nds-api/Go/nds/policy\xa2\x02\x03NPX\xaa\x02\nNds.Policy\xca\x02\nNds\\Policy\xe2\x02\x16Nds\\Policy\\GPBMetadata\xea\x02\x0bNds::Policyb\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Nds
14
+ module Policy
15
+ NdsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.policy.NdsPolicy").msgclass
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/projection/projection.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'google/protobuf/any_pb'
9
+
10
+
11
+ descriptor_data = "\n\x1fnds/projection/projection.proto\x12\x0ends.projection\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\"<\n\x0cProjectionId\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"\x8a\x03\n\rNdsProjection\x12,\n\x02id\x18\x01 \x01(\x0b\x32\x1c.nds.projection.ProjectionIdR\x02id\x12\x38\n\x06status\x18\x02 \x01(\x0e\x32 .nds.projection.ProjectionStatusR\x06status\x12\"\n\rlast_event_id\x18\x03 \x01(\tR\x0blastEventId\x12=\n\x0clast_updated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0blastUpdated\x12(\n\x04\x64\x61ta\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyR\x04\x64\x61ta\x12G\n\x08metadata\x18\x06 \x03(\x0b\x32+.nds.projection.NdsProjection.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xa2\x01\n\x11\x42\x61lanceProjection\x12\x18\n\x07\x62\x61lance\x18\x01 \x01(\tR\x07\x62\x61lance\x12\x19\n\x08\x61sset_id\x18\x02 \x01(\tR\x07\x61ssetId\x12\x19\n\x08owner_id\x18\x03 \x01(\tR\x07ownerId\x12=\n\x0clast_updated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0blastUpdated\"\xe6\x01\n\x10LeaderboardEntry\x12\x12\n\x04rank\x18\x01 \x01(\x05R\x04rank\x12\x1f\n\x0bidentity_id\x18\x02 \x01(\tR\nidentityId\x12\x14\n\x05value\x18\x03 \x01(\tR\x05value\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32..nds.projection.LeaderboardEntry.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc1\x01\n\x15LeaderboardProjection\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n\x08\x61sset_id\x18\x02 \x01(\tR\x07\x61ssetId\x12:\n\x07\x65ntries\x18\x03 \x03(\x0b\x32 .nds.projection.LeaderboardEntryR\x07\x65ntries\x12=\n\x0clast_updated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0blastUpdated*\xb2\x01\n\x10ProjectionStatus\x12!\n\x1dPROJECTION_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18PROJECTION_STATUS_ACTIVE\x10\x01\x12 \n\x1cPROJECTION_STATUS_REBUILDING\x10\x02\x12\x1e\n\x1aPROJECTION_STATUS_DISABLED\x10\x03\x12\x1b\n\x17PROJECTION_STATUS_ERROR\x10\x04\x42\xd5\x01\n9noie.linmimeng.noiedigitalsystem.api.proto.nds.projectionB\x0fProjectionProtoP\x01Z.github.com/misty4119/nds-api/Go/nds/projection\xa2\x02\x03NPX\xaa\x02\x0eNds.Projection\xca\x02\x0eNds\\Projection\xe2\x02\x1aNds\\Projection\\GPBMetadata\xea\x02\x0fNds::Projectionb\x06proto3"
12
+
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Nds
17
+ module Projection
18
+ ProjectionId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.ProjectionId").msgclass
19
+ NdsProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.NdsProjection").msgclass
20
+ BalanceProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.BalanceProjection").msgclass
21
+ LeaderboardEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.LeaderboardEntry").msgclass
22
+ LeaderboardProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.LeaderboardProjection").msgclass
23
+ ProjectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.projection.ProjectionStatus").enummodule
24
+ end
25
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/query/query.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'nds/common/common_pb'
9
+ require 'nds/identity/identity_pb'
10
+ require 'nds/asset/asset_pb'
11
+ require 'nds/event/event_pb'
12
+ require 'nds/context/context_pb'
13
+ require 'nds/projection/projection_pb'
14
+
15
+
16
+ descriptor_data = "\n\x15nds/query/query.proto\x12\tnds.query\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17nds/common/common.proto\x1a\x1bnds/identity/identity.proto\x1a\x15nds/asset/asset.proto\x1a\x15nds/event/event.proto\x1a\x19nds/context/context.proto\x1a\x1fnds/projection/projection.proto\"\xcc\x01\n\x13QueryBalanceRequest\x12(\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x12.nds.asset.AssetIdR\x05\x61sset\x12:\n\x08identity\x18\x02 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x00R\x08identity\x88\x01\x01\x12\x36\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x17.nds.context.NdsContextH\x01R\x07\x63ontext\x88\x01\x01\x42\x0b\n\t_identityB\n\n\x08_context\"\x85\x01\n\x14QueryBalanceResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12\x32\n\x07\x62\x61lance\x18\x02 \x01(\x0b\x32\x13.nds.common.DecimalH\x00R\x07\x62\x61lance\x88\x01\x01\x42\n\n\x08_balance\"\xa1\x03\n\x13QueryHistoryRequest\x12-\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x12.nds.asset.AssetIdH\x00R\x05\x61sset\x88\x01\x01\x12:\n\x08identity\x18\x02 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x01R\x08identity\x88\x01\x01\x12>\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\tstartTime\x88\x01\x01\x12:\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x03R\x07\x65ndTime\x88\x01\x01\x12\x14\n\x05limit\x18\x05 \x01(\x05R\x05limit\x12\x16\n\x06offset\x18\x06 \x01(\x05R\x06offset\x12\x36\n\x07\x63ontext\x18\x07 \x01(\x0b\x32\x17.nds.context.NdsContextH\x04R\x07\x63ontext\x88\x01\x01\x42\x08\n\x06_assetB\x0b\n\t_identityB\r\n\x0b_start_timeB\x0b\n\t_end_timeB\n\n\x08_context\"\x93\x01\n\x14QueryHistoryResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12+\n\x06\x65vents\x18\x02 \x03(\x0b\x32\x13.nds.event.NdsEventR\x06\x65vents\x12\x1f\n\x0btotal_count\x18\x03 \x01(\x03R\ntotalCount\"\x9f\x01\n\x16QueryProjectionRequest\x12\x41\n\rprojection_id\x18\x01 \x01(\x0b\x32\x1c.nds.projection.ProjectionIdR\x0cprojectionId\x12\x36\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x42\n\n\x08_context\"\x9b\x01\n\x17QueryProjectionResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12\x42\n\nprojection\x18\x02 \x01(\x0b\x32\x1d.nds.projection.NdsProjectionH\x00R\nprojection\x88\x01\x01\x42\r\n\x0b_projection\"\xd3\x01\n\rReplayRequest\x12\x41\n\rprojection_id\x18\x01 \x01(\x0b\x32\x1c.nds.projection.ProjectionIdR\x0cprojectionId\x12;\n\x0btarget_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ntargetTime\x12\x36\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x42\n\n\x08_context\"\x92\x01\n\x0eReplayResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12\x42\n\nprojection\x18\x02 \x01(\x0b\x32\x1d.nds.projection.NdsProjectionH\x00R\nprojection\x88\x01\x01\x42\r\n\x0b_projection\"\xba\x01\n\x19RegisterProjectionRequest\x12\x41\n\rprojection_id\x18\x01 \x01(\x0b\x32\x1c.nds.projection.ProjectionIdR\x0cprojectionId\x12\x16\n\x06\x63onfig\x18\x02 \x01(\tR\x06\x63onfig\x12\x36\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x42\n\n\x08_context\"K\n\x1aRegisterProjectionResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\"\xa4\x01\n\x1bUnregisterProjectionRequest\x12\x41\n\rprojection_id\x18\x01 \x01(\x0b\x32\x1c.nds.projection.ProjectionIdR\x0cprojectionId\x12\x36\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x42\n\n\x08_context\"M\n\x1cUnregisterProjectionResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result2\x98\x04\n\x0fNdsQueryService\x12O\n\x0cQueryBalance\x12\x1e.nds.query.QueryBalanceRequest\x1a\x1f.nds.query.QueryBalanceResponse\x12O\n\x0cQueryHistory\x12\x1e.nds.query.QueryHistoryRequest\x1a\x1f.nds.query.QueryHistoryResponse\x12X\n\x0fQueryProjection\x12!.nds.query.QueryProjectionRequest\x1a\".nds.query.QueryProjectionResponse\x12=\n\x06Replay\x12\x18.nds.query.ReplayRequest\x1a\x19.nds.query.ReplayResponse\x12\x61\n\x12RegisterProjection\x12$.nds.query.RegisterProjectionRequest\x1a%.nds.query.RegisterProjectionResponse\x12g\n\x14UnregisterProjection\x12&.nds.query.UnregisterProjectionRequest\x1a\'.nds.query.UnregisterProjectionResponseB\xb2\x01\n4noie.linmimeng.noiedigitalsystem.api.proto.nds.queryB\nQueryProtoP\x01Z)github.com/misty4119/nds-api/Go/nds/query\xa2\x02\x03NQX\xaa\x02\tNds.Query\xca\x02\tNds\\Query\xe2\x02\x15Nds\\Query\\GPBMetadata\xea\x02\nNds::Queryb\x06proto3"
17
+
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
20
+
21
+ module Nds
22
+ module Query
23
+ QueryBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryBalanceRequest").msgclass
24
+ QueryBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryBalanceResponse").msgclass
25
+ QueryHistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryHistoryRequest").msgclass
26
+ QueryHistoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryHistoryResponse").msgclass
27
+ QueryProjectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryProjectionRequest").msgclass
28
+ QueryProjectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.QueryProjectionResponse").msgclass
29
+ ReplayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.ReplayRequest").msgclass
30
+ ReplayResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.ReplayResponse").msgclass
31
+ RegisterProjectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.RegisterProjectionRequest").msgclass
32
+ RegisterProjectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.RegisterProjectionResponse").msgclass
33
+ UnregisterProjectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.UnregisterProjectionRequest").msgclass
34
+ UnregisterProjectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.query.UnregisterProjectionResponse").msgclass
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/sync/v1/sync.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'nds/common/v1/common_v1_pb'
9
+ require 'nds/event/v1/event_v1_pb'
10
+ require 'nds/identity/v1/identity_v1_pb'
11
+ require 'nds/ledger/v1/ledger_pb'
12
+
13
+
14
+ descriptor_data = "\n\x16nds/sync/v1/sync.proto\x12\x0bnds.sync.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dnds/common/v1/common_v1.proto\x1a\x1bnds/event/v1/event_v1.proto\x1a!nds/identity/v1/identity_v1.proto\x1a\x1ands/ledger/v1/ledger.proto\"#\n\x0bResumeToken\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\"\xa9\x03\n\x16SubscribeEventsRequest\x12\x35\n\x06resume\x18\x01 \x01(\x0b\x32\x18.nds.sync.v1.ResumeTokenH\x00R\x06resume\x88\x01\x01\x12\x35\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x05since\x88\x01\x01\x12-\n\x05types\x18\x03 \x03(\x0e\x32\x17.nds.event.v1.EventTypeR\x05types\x12\x35\n\x05owner\x18\x04 \x01(\x0b\x32\x1a.nds.identity.v1.PersonaIdH\x02R\x05owner\x88\x01\x01\x12\x31\n\x15max_events_per_second\x18\n \x01(\x05R\x12maxEventsPerSecond\x12\'\n\rmax_in_flight\x18\x0b \x01(\x05H\x03R\x0bmaxInFlight\x88\x01\x01\x12 \n\tpage_size\x18\x0c \x01(\x05H\x04R\x08pageSize\x88\x01\x01\x42\t\n\x07_resumeB\x08\n\x06_sinceB\x08\n\x06_ownerB\x10\n\x0e_max_in_flightB\x0c\n\n_page_size\"\xd0\x02\n\x17SubscribeEventsResponse\x12\x35\n\x06resume\x18\x01 \x01(\x0b\x32\x18.nds.sync.v1.ResumeTokenH\x01R\x06resume\x88\x01\x01\x12:\n\x08ordering\x18\x02 \x01(\x0e\x32\x19.nds.sync.v1.OrderingModeH\x02R\x08ordering\x88\x01\x01\x12\x33\n\x05\x65vent\x18\n \x01(\x0b\x32\x1b.nds.event.v1.EventEnvelopeH\x00R\x05\x65vent\x12\x36\n\theartbeat\x18\x0b \x01(\x0b\x32\x16.nds.sync.v1.HeartbeatH\x00R\theartbeat\x12\x32\n\x05\x65rror\x18\x0c \x01(\x0b\x32\x1a.nds.common.v1.ErrorStatusH\x00R\x05\x65rrorB\t\n\x07messageB\t\n\x07_resumeB\x0b\n\t_ordering\"C\n\tHeartbeat\x12/\n\x02\x61t\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x02\x61t\x88\x01\x01\x42\x05\n\x03_at\"\xf4\x01\n\x13WatchBalanceRequest\x12+\n\x03key\x18\x01 \x01(\x0b\x32\x19.nds.ledger.v1.BalanceKeyR\x03key\x12\x35\n\x06resume\x18\x02 \x01(\x0b\x32\x18.nds.sync.v1.ResumeTokenH\x00R\x06resume\x88\x01\x01\x12\x33\n\x16max_updates_per_second\x18\n \x01(\x05R\x13maxUpdatesPerSecond\x12\'\n\rmax_in_flight\x18\x0b \x01(\x05H\x01R\x0bmaxInFlight\x88\x01\x01\x42\t\n\x07_resumeB\x10\n\x0e_max_in_flight\"q\n\x0f\x42\x61lanceSnapshot\x12\x30\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x16.nds.ledger.v1.BalanceR\x07\x62\x61lance\x12,\n\x06\x63ursor\x18\x02 \x01(\x0b\x32\x14.nds.event.v1.CursorR\x06\x63ursor\"\x94\x02\n\x0c\x42\x61lanceDelta\x12+\n\x03key\x18\x01 \x01(\x0b\x32\x19.nds.ledger.v1.BalanceKeyR\x03key\x12*\n\x05\x64\x65lta\x18\x02 \x01(\x0b\x32\x14.nds.ledger.v1.MoneyR\x05\x64\x65lta\x12\x1f\n\x0bnew_version\x18\x03 \x01(\x04R\nnewVersion\x12,\n\x06\x63ursor\x18\x04 \x01(\x0b\x32\x14.nds.event.v1.CursorR\x06\x63ursor\x12\x1e\n\x0bproof_tx_id\x18\x05 \x01(\x0cR\tproofTxId\x12)\n\x0eproof_event_id\x18\x06 \x01(\x0cH\x00R\x0cproofEventId\x88\x01\x01\x42\x11\n\x0f_proof_event_id\"\x87\x03\n\x14WatchBalanceResponse\x12\x35\n\x06resume\x18\x01 \x01(\x0b\x32\x18.nds.sync.v1.ResumeTokenH\x01R\x06resume\x88\x01\x01\x12:\n\x08ordering\x18\x02 \x01(\x0e\x32\x19.nds.sync.v1.OrderingModeH\x02R\x08ordering\x88\x01\x01\x12:\n\x08snapshot\x18\n \x01(\x0b\x32\x1c.nds.sync.v1.BalanceSnapshotH\x00R\x08snapshot\x12\x31\n\x05\x64\x65lta\x18\x0b \x01(\x0b\x32\x19.nds.sync.v1.BalanceDeltaH\x00R\x05\x64\x65lta\x12\x32\n\x05\x65rror\x18\x0c \x01(\x0b\x32\x1a.nds.common.v1.ErrorStatusH\x00R\x05\x65rror\x12\x36\n\theartbeat\x18\r \x01(\x0b\x32\x16.nds.sync.v1.HeartbeatH\x00R\theartbeatB\t\n\x07messageB\t\n\x07_resumeB\x0b\n\t_ordering*e\n\x0cOrderingMode\x12\x1d\n\x19ORDERING_MODE_UNSPECIFIED\x10\x00\x12\x17\n\x13ORDERING_MODE_TOTAL\x10\x01\x12\x1d\n\x19ORDERING_MODE_PARTITIONED\x10\x02\x42\xc5\x01\n6noie.linmimeng.noiedigitalsystem.api.proto.nds.sync.v1B\tSyncProtoP\x01Z2github.com/misty4119/nds-api/Go/nds/sync/v1;syncv1\xa2\x02\x03NSX\xaa\x02\x0bNds.Sync.V1\xca\x02\x0bNds\\Sync\\V1\xe2\x02\x17Nds\\Sync\\V1\\GPBMetadata\xea\x02\rNds::Sync::V1b\x06proto3"
15
+
16
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
17
+ pool.add_serialized_file(descriptor_data)
18
+
19
+ module Nds
20
+ module Sync
21
+ module V1
22
+ ResumeToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.ResumeToken").msgclass
23
+ SubscribeEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.SubscribeEventsRequest").msgclass
24
+ SubscribeEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.SubscribeEventsResponse").msgclass
25
+ Heartbeat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.Heartbeat").msgclass
26
+ WatchBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.WatchBalanceRequest").msgclass
27
+ BalanceSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.BalanceSnapshot").msgclass
28
+ BalanceDelta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.BalanceDelta").msgclass
29
+ WatchBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.WatchBalanceResponse").msgclass
30
+ OrderingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.sync.v1.OrderingMode").enummodule
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nds/transaction/transaction.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+ require 'nds/common/common_pb'
9
+ require 'nds/identity/identity_pb'
10
+ require 'nds/asset/asset_pb'
11
+ require 'nds/event/event_pb'
12
+ require 'nds/context/context_pb'
13
+ require 'nds/audit/rationale_pb'
14
+
15
+
16
+ descriptor_data = "\n!nds/transaction/transaction.proto\x12\x0fnds.transaction\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17nds/common/common.proto\x1a\x1bnds/identity/identity.proto\x1a\x15nds/asset/asset.proto\x1a\x15nds/event/event.proto\x1a\x19nds/context/context.proto\x1a\x19nds/audit/rationale.proto\"\xbe\x08\n\x0eNdsTransaction\x12\"\n\x02id\x18\x01 \x01(\x0b\x32\x12.nds.event.EventIdR\x02id\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12/\n\x05\x61\x63tor\x18\x03 \x01(\x0b\x32\x19.nds.identity.NdsIdentityR\x05\x61\x63tor\x12/\n\x07payload\x18\x04 \x01(\x0b\x32\x15.nds.event.NdsPayloadR\x07payload\x12%\n\x0eschema_version\x18\x05 \x01(\x05R\rschemaVersion\x12I\n\x08metadata\x18\x06 \x03(\x0b\x32-.nds.transaction.NdsTransaction.MetadataEntryR\x08metadata\x12\x36\n\x07\x63ontext\x18\x07 \x01(\x0b\x32\x17.nds.context.NdsContextH\x00R\x07\x63ontext\x88\x01\x01\x12(\n\x05\x61sset\x18\n \x01(\x0b\x32\x12.nds.asset.AssetIdR\x05\x61sset\x12)\n\x05\x64\x65lta\x18\x0b \x01(\x0b\x32\x13.nds.common.DecimalR\x05\x64\x65lta\x12\x42\n\x0b\x63onsistency\x18\x0c \x01(\x0e\x32 .nds.transaction.ConsistencyModeR\x0b\x63onsistency\x12\x36\n\x06source\x18\r \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x01R\x06source\x88\x01\x01\x12\x36\n\x06target\x18\x0e \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x02R\x06target\x88\x01\x01\x12\x1b\n\x06reason\x18\x0f \x01(\tH\x03R\x06reason\x88\x01\x01\x12:\n\x06status\x18\x10 \x01(\x0e\x32\".nds.transaction.TransactionStatusR\x06status\x12\x37\n\x15\x65nforcement_policy_id\x18\x11 \x01(\tH\x04R\x13\x65nforcementPolicyId\x88\x01\x01\x12:\n\trationale\x18\x12 \x01(\x0b\x32\x17.nds.audit.NdsRationaleH\x05R\trationale\x88\x01\x01\x12\x44\n\rrationale_ref\x18\x13 \x01(\x0b\x32\x1a.nds.audit.NdsRationaleRefH\x06R\x0crationaleRef\x88\x01\x01\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\n\n\x08_contextB\t\n\x07_sourceB\t\n\x07_targetB\t\n\x07_reasonB\x18\n\x16_enforcement_policy_idB\x0c\n\n_rationaleB\x10\n\x0e_rationale_ref\"\xe8\x04\n\x18\x43reateTransactionRequest\x12(\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x12.nds.asset.AssetIdR\x05\x61sset\x12)\n\x05\x64\x65lta\x18\x02 \x01(\x0b\x32\x13.nds.common.DecimalR\x05\x64\x65lta\x12/\n\x05\x61\x63tor\x18\x03 \x01(\x0b\x32\x19.nds.identity.NdsIdentityR\x05\x61\x63tor\x12\x42\n\x0b\x63onsistency\x18\x04 \x01(\x0e\x32 .nds.transaction.ConsistencyModeR\x0b\x63onsistency\x12\x36\n\x06source\x18\x05 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x00R\x06source\x88\x01\x01\x12\x36\n\x06target\x18\x06 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x01R\x06target\x88\x01\x01\x12\x1b\n\x06reason\x18\x07 \x01(\tH\x02R\x06reason\x88\x01\x01\x12\x36\n\x07\x63ontext\x18\x08 \x01(\x0b\x32\x17.nds.context.NdsContextH\x03R\x07\x63ontext\x88\x01\x01\x12S\n\x08metadata\x18\t \x03(\x0b\x32\x37.nds.transaction.CreateTransactionRequest.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\t\n\x07_sourceB\t\n\x07_targetB\t\n\x07_reasonB\n\n\x08_context\"\xa2\x01\n\x19\x43reateTransactionResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12\x46\n\x0btransaction\x18\x02 \x01(\x0b\x32\x1f.nds.transaction.NdsTransactionH\x00R\x0btransaction\x88\x01\x01\x42\x0e\n\x0c_transaction\"K\n\x1aPreviewTransactionResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\"\xac\x02\n\x1e\x42\x61tchCreateTransactionsRequest\x12\x45\n\x08requests\x18\x01 \x03(\x0b\x32).nds.transaction.CreateTransactionRequestR\x08requests\x12\x1e\n\x08\x62\x61tch_id\x18\x02 \x01(\tH\x00R\x07\x62\x61tchId\x88\x01\x01\x12Y\n\x08metadata\x18\x03 \x03(\x0b\x32=.nds.transaction.BatchCreateTransactionsRequest.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0b\n\t_batch_id\"\x9a\x01\n\x1f\x42\x61tchCreateTransactionsResponse\x12-\n\x06result\x18\x01 \x01(\x0b\x32\x15.nds.common.NdsResultR\x06result\x12H\n\tresponses\x18\x02 \x03(\x0b\x32*.nds.transaction.CreateTransactionResponseR\tresponses\"\xae\x04\n\x19StreamTransactionsRequest\x12-\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x12.nds.asset.AssetIdH\x00R\x05\x61sset\x88\x01\x01\x12\x34\n\x05\x61\x63tor\x18\x02 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x01R\x05\x61\x63tor\x88\x01\x01\x12\x36\n\x06source\x18\x03 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x02R\x06source\x88\x01\x01\x12\x36\n\x06target\x18\x04 \x01(\x0b\x32\x19.nds.identity.NdsIdentityH\x03R\x06target\x88\x01\x01\x12\x35\n\x05since\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x04R\x05since\x88\x01\x01\x12>\n\x08statuses\x18\x06 \x03(\x0e\x32\".nds.transaction.TransactionStatusR\x08statuses\x12T\n\x08metadata\x18\x07 \x03(\x0b\x32\x38.nds.transaction.StreamTransactionsRequest.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06_assetB\x08\n\x06_actorB\t\n\x07_sourceB\t\n\x07_targetB\x08\n\x06_since*\x90\x01\n\x0f\x43onsistencyMode\x12 \n\x1c\x43ONSISTENCY_MODE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43ONSISTENCY_MODE_STRONG\x10\x01\x12\x1d\n\x19\x43ONSISTENCY_MODE_EVENTUAL\x10\x02\x12\x1f\n\x1b\x43ONSISTENCY_MODE_OPTIMISTIC\x10\x03*\xbc\x01\n\x11TransactionStatus\x12\"\n\x1eTRANSACTION_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1aTRANSACTION_STATUS_PENDING\x10\x01\x12 \n\x1cTRANSACTION_STATUS_COMMITTED\x10\x02\x12\"\n\x1eTRANSACTION_STATUS_ROLLED_BACK\x10\x03\x12\x1d\n\x19TRANSACTION_STATUS_FAILED\x10\x04\x42\xdc\x01\n:noie.linmimeng.noiedigitalsystem.api.proto.nds.transactionB\x10TransactionProtoP\x01Z/github.com/misty4119/nds-api/Go/nds/transaction\xa2\x02\x03NTX\xaa\x02\x0fNds.Transaction\xca\x02\x0fNds\\Transaction\xe2\x02\x1bNds\\Transaction\\GPBMetadata\xea\x02\x10Nds::Transactionb\x06proto3"
17
+
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
20
+
21
+ module Nds
22
+ module Transaction
23
+ NdsTransaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.NdsTransaction").msgclass
24
+ CreateTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.CreateTransactionRequest").msgclass
25
+ CreateTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.CreateTransactionResponse").msgclass
26
+ PreviewTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.PreviewTransactionResponse").msgclass
27
+ BatchCreateTransactionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.BatchCreateTransactionsRequest").msgclass
28
+ BatchCreateTransactionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.BatchCreateTransactionsResponse").msgclass
29
+ StreamTransactionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.StreamTransactionsRequest").msgclass
30
+ ConsistencyMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.ConsistencyMode").enummodule
31
+ TransactionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("nds.transaction.TransactionStatus").enummodule
32
+ end
33
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Noie
4
+ module Nds
5
+ module Api
6
+ VERSION = "3.0.3"
7
+ end
8
+ end
9
+ end
10
+
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "noie_nds_api/version"
4
+
5
+ # Load all generated protobuf descriptors.
6
+ require_relative "nds/common/common_pb"
7
+ require_relative "nds/common/v1/common_v1_pb"
8
+ require_relative "nds/identity/identity_pb"
9
+ require_relative "nds/identity/v1/identity_v1_pb"
10
+ require_relative "nds/asset/asset_pb"
11
+ require_relative "nds/context/context_pb"
12
+ require_relative "nds/event/event_pb"
13
+ require_relative "nds/event/v1/event_v1_pb"
14
+ require_relative "nds/transaction/transaction_pb"
15
+ require_relative "nds/query/query_pb"
16
+ require_relative "nds/projection/projection_pb"
17
+ require_relative "nds/policy/policy_pb"
18
+ require_relative "nds/audit/rationale_pb"
19
+ require_relative "nds/sync/v1/sync_pb"
20
+ require_relative "nds/ledger/v1/ledger_pb"
21
+ require_relative "nds/metadata/v1/metadata_pb"
22
+ require_relative "nds/memory/v1/memory_pb"
23
+
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: noie-nds-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Misty4119
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: google-protobuf
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '4'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '4'
26
+ description: Generated Ruby protobuf types for NoieDigitalSystem (NDS) protocol.
27
+ executables: []
28
+ extensions: []
29
+ extra_rdoc_files: []
30
+ files:
31
+ - README.md
32
+ - lib/nds/asset/asset_pb.rb
33
+ - lib/nds/audit/rationale_pb.rb
34
+ - lib/nds/common/common_pb.rb
35
+ - lib/nds/common/v1/common_v1_pb.rb
36
+ - lib/nds/context/context_pb.rb
37
+ - lib/nds/event/event_pb.rb
38
+ - lib/nds/event/v1/event_v1_pb.rb
39
+ - lib/nds/identity/identity_pb.rb
40
+ - lib/nds/identity/v1/identity_v1_pb.rb
41
+ - lib/nds/ledger/v1/ledger_pb.rb
42
+ - lib/nds/memory/v1/memory_pb.rb
43
+ - lib/nds/metadata/v1/metadata_pb.rb
44
+ - lib/nds/policy/policy_pb.rb
45
+ - lib/nds/projection/projection_pb.rb
46
+ - lib/nds/query/query_pb.rb
47
+ - lib/nds/sync/v1/sync_pb.rb
48
+ - lib/nds/transaction/transaction_pb.rb
49
+ - lib/noie_nds_api.rb
50
+ - lib/noie_nds_api/version.rb
51
+ homepage: https://github.com/Misty4119/nds-api
52
+ licenses:
53
+ - Apache-2.0
54
+ metadata:
55
+ source_code_uri: https://github.com/Misty4119/nds-api
56
+ bug_tracker_uri: https://github.com/Misty4119/nds-api/issues
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 4.0.1
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubygems_version: 4.0.3
72
+ specification_version: 4
73
+ summary: NDS Protocol Buffers types for Ruby (generated from nds-api/spec).
74
+ test_files: []