Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions book/src/drive/index-only-document-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stores nothing in primary storage. The index entries ARE the rows:

The **terminal** — a per-index keyword defaulting to `$ownerId`, or any
refersTo-typed identifier property (identity, contract, token, permanent
document) — is the member key, sitting exactly where a normal non-unique
or deletable document) — is the member key, sitting exactly where a normal non-unique
index keys by document id; the element is an `Item` instead of a
`Reference` because there is nothing to point at. The `0` storage marker,
value-tree types, and the count/sum/ranked tree derivation are
Expand Down Expand Up @@ -220,8 +220,11 @@ may declare `preallocated: true` iff every index property is either the
referring property itself (its value is the referenced document's `$id`)
or a key of that reference's `propertyAgreement` (consensus-equal to a
referenced-document property, its `$ownerId` and `$creatorId` included),
and the reference targets a document type
of the **same contract**. `byHashtagPost` (`[hashtag, postId]`) qualifies
and the reference is a `permanentDocument` one targeting a document type
of the **same contract**. A `deletableDocument` reference shapes the path
the same way but does not qualify: its target can be deleted, and the
trees created alongside it would outlive it with other owners' entries
inside. `byHashtagPost` (`[hashtag, postId]`) qualifies
— `hashtag` through the agreement, `postId` as the reference;
`byLiker` (`[$ownerId]`) cannot, since no referenced document determines
the liker. An `[authorId, postId]` index whose `authorId` agrees with the
Expand Down
83 changes: 83 additions & 0 deletions packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js

Large diffs are not rendered by default.

161 changes: 157 additions & 4 deletions packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4192,7 +4192,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.oneofGroups_);
jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.repeatedFields_, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.oneofGroups_);
};
goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
Expand Down Expand Up @@ -47001,7 +47001,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Resu
* @private {!Array<number>}
* @const
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.repeatedFields_ = [1,2];
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.repeatedFields_ = [1,2,3];



Expand Down Expand Up @@ -47035,7 +47035,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Chai
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.toObject = function(includeInstance, msg) {
var f, obj = {
innerDocumentsList: msg.getInnerDocumentsList_asB64(),
outerDocumentsList: msg.getOuterDocumentsList_asB64()
outerDocumentsList: msg.getOuterDocumentsList_asB64(),
missingOuterIdsList: msg.getMissingOuterIdsList_asB64()
};

if (includeInstance) {
Expand Down Expand Up @@ -47080,6 +47081,10 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Chai
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addOuterDocuments(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addMissingOuterIds(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -47123,6 +47128,13 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Chai
f
);
}
f = message.getMissingOuterIdsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
3,
f
);
}
};


Expand Down Expand Up @@ -47248,6 +47260,67 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Chai
};


/**
* repeated bytes missing_outer_ids = 3;
* @return {!Array<string>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.getMissingOuterIdsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
* repeated bytes missing_outer_ids = 3;
* This is a type-conversion wrapper around `getMissingOuterIdsList()`
* @return {!Array<string>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.getMissingOuterIdsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getMissingOuterIdsList()));
};


/**
* repeated bytes missing_outer_ids = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getMissingOuterIdsList()`
* @return {!Array<!Uint8Array>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.getMissingOuterIdsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getMissingOuterIdsList()));
};


/**
* @param {!(Array<!Uint8Array>|Array<string>)} value
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.setMissingOuterIdsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};


/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.addMissingOuterIds = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.prototype.clearMissingOuterIdsList = function() {
return this.setMissingOuterIdsList([]);
};



/**
* List of repeated fields within this message type.
Expand Down Expand Up @@ -47383,6 +47456,13 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Comp



/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.repeatedFields_ = [3];

/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
Expand Down Expand Up @@ -47441,7 +47521,8 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Comp
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.toObject = function(includeInstance, msg) {
var f, obj = {
documents: (f = msg.getDocuments()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.toObject(includeInstance, f),
counts: (f = msg.getCounts()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.toObject(includeInstance, f)
counts: (f = msg.getCounts()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.toObject(includeInstance, f),
missingIdsList: msg.getMissingIdsList_asB64()
};

if (includeInstance) {
Expand Down Expand Up @@ -47488,6 +47569,10 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Comp
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.deserializeBinaryFromReader);
msg.setCounts(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addMissingIds(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -47533,6 +47618,13 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Comp
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.serializeBinaryToWriter
);
}
f = message.getMissingIdsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
3,
f
);
}
};


Expand Down Expand Up @@ -47610,6 +47702,67 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Comp
};


/**
* repeated bytes missing_ids = 3;
* @return {!Array<string>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.getMissingIdsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
* repeated bytes missing_ids = 3;
* This is a type-conversion wrapper around `getMissingIdsList()`
* @return {!Array<string>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.getMissingIdsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getMissingIdsList()));
};


/**
* repeated bytes missing_ids = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getMissingIdsList()`
* @return {!Array<!Uint8Array>}
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.getMissingIdsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getMissingIdsList()));
};


/**
* @param {!(Array<!Uint8Array>|Array<string>)} value
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.setMissingIdsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};


/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.addMissingIds = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} returns this
*/
proto.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.prototype.clearMissingIdsList = function() {
return this.setMissingIdsList([]);
};


/**
* repeated bytes page_documents = 1;
* @return {!Array<string>}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,242 changes: 628 additions & 614 deletions packages/dapi-grpc/clients/platform/v0/python/platform_pb2.py

Large diffs are not rendered by default.

Loading
Loading