For more information about the grammer/schema for document operations, which is actually what is transmitted in the /save call of gdocs,
[1] http://wave-protocol.googlecode.com/hg/spec/federation/waves...
[2] http://code.google.com/p/wave-protocol/ - wave protocol project (initiated by google, now maitained by apache) is the root from where gdocs adopted OT.