Commit Graph
100 Commits
Author SHA1 Message Date
Sam c4f06fa79b Remove chat.Edit 2020-02-16 16:11:56 -05:00
Sam b50d3bcfa2 Clean up some of the comments 2020-02-16 16:09:08 -05:00
Sam b55e4b8315 Add Edit funcs 2020-02-16 15:59:37 -05:00
Sam 450f2c1558 Add method arg to SendMessage 2020-02-16 15:58:44 -05:00
Sam 219ef492f5 Remove chat.Reply 2020-02-16 15:52:30 -05:00
Sam 26e487659c Ephemeral duration should be optional 2020-02-16 15:38:25 -05:00
Sam 3faadfd076 Add ReplyToChannel and ReplyToConvID, and attempt to fix ephemeral sends 2020-02-16 15:22:47 -05:00
Sam d791203856 Add SendEphemeralToChannel and SendEphemeralToConvID 2020-02-16 14:48:13 -05:00
Sam 285567309a Add SendMessageToConvID 2020-02-16 14:07:26 -05:00
Sam 4e2656445c Add SendMessage and SendMessageToChannel, and the necessary types to go with them 2020-02-16 14:01:39 -05:00
Sam 0cfaa93505 Change Channel to use chat1.Channel 2020-01-29 17:07:42 -05:00
Sam 6d85c97e05 Add avdl compiled types 2020-01-29 16:19:18 -05:00
Sam c90ef2c03a Allow specifying revision on kvstore methods 2020-01-23 16:49:12 -05:00
Sam b83a1e0227 Add delete method for kvstore 2020-01-22 08:35:24 -05:00
Sam 3b4b5b66fd Add put method for kvstore 2020-01-22 07:58:32 -05:00
Sam 63f9ef1ee2 Add Get method to kvstore 2020-01-17 17:00:53 -05:00
Sam 14c7ec6cec Add Keys method to kvstore 2020-01-17 16:38:53 -05:00
Sam 77e35028fa Add initial support for Keybase's kv store api 2020-01-17 13:55:21 -05:00
Sam 0f7a350f1a Add error handling to general example 2019-12-24 01:02:32 -05:00
Sam 207ad74bdd Previous commit didn't work and broke other things. This is a different implementation to fix the same problems. 2019-12-23 22:27:49 -05:00
Sam 6f53d9c8c6 Catch errors from api-listen
When the `keybase chat api-listen` command returns a message with
an error, the format of the error json is unlike most (or all?)
other errors they return. This commit adds the `ErrorListen` field
to ChatAPI to catch those errors.
2019-12-20 08:29:02 -05:00
Sam c4525fe850 add UserCard() 2019-12-03 16:49:55 -05:00
Sam a37a0609eb add ListUserMemberships() 2019-11-30 19:04:07 -05:00
Sam 3e22b70efa Minor docs formatting update 2019-11-27 15:42:09 -05:00
Sam 4b1fcae196 Add devices field to UserLookup 2019-11-27 15:35:40 -05:00
Sam c2f6e6954d Add UserLookup() 2019-11-27 15:10:17 -05:00
Sam b247e10f1b Add additional fields to advertisemend methods 2019-11-04 08:19:19 -05:00
Sam 7263387124 Add AdvertiseCommand example to docs 2019-11-03 23:51:33 -05:00
Sam bab44f8b9e Add inputs to ChatList() method on keybase interface 2019-11-03 23:27:09 -05:00
Sam 2e7df5deef Add bot advertisement methods 2019-11-03 23:24:46 -05:00
Sam 972d197182 Add support for receiving chat replies 2019-10-31 10:37:37 -04:00
Sam b00e56e8dd Create new jsonData var with every new message instead of reusing the same var. This fixes the bug where IsEphemeral is true for every message after one ephemeral message is received, and probably countless other unknown bugs. 2019-10-22 23:44:10 -04:00
Sam e51bcca5ba Attempt to make the getID func more 32-bit friendly 2019-10-17 21:47:43 -04:00
Sam a9e004c8b3 Consolidate different member-type structs into one member struct 2019-10-15 23:41:51 -04:00
Sam 4ccaf4c45a Add Reply() 2019-10-09 21:41:46 -04:00
Sam 09d99c227f Add ReadMessage() 2019-10-04 12:40:12 -04:00
Sam 384478af39 Update ChatList() to allow for more filtering 2019-10-01 22:10:53 -04:00
Sam e4cdbc50c9 Allow TopicType to be specified when calling ChatList 2019-09-28 23:21:42 -04:00
Sam 74a93b765c Consolidate the various functions that call keybase status so it only gets called once 2019-09-27 22:40:38 -04:00
Sam fc05a8d710 Add device name to Keybase 2019-09-27 22:20:45 -04:00
Sam 9c4b5cf202 Move appropriate methods to wallet interface 2019-09-23 00:59:44 -04:00
Sam d2bdf62100 Add NewWallet method to keybase interface in types.go 2019-09-23 00:57:12 -04:00
Sam e64220b071 Add Send and SendXLM methods to wallet interface 2019-09-23 00:47:43 -04:00
Sam d04c10ae70 Add NewWallet() method 2019-09-23 00:47:14 -04:00
Sam f3a507b8a8 Add wallet interface and type 2019-09-23 00:46:24 -04:00
Sam e829386733 Added RequestPayment info 2019-09-22 01:26:35 -04:00
Sam e3bf9364b8 Add CancelRequest to keybase 2019-09-22 01:18:21 -04:00
Sam 3b0984102c Add Mark method to Chat 2019-09-21 22:30:16 -04:00
Sam 9dbf3b1664 Add Pin and Unpin methods to Chat 2019-09-21 11:20:56 -04:00
Sam 798f98f679 Add additional information and an example to the docs 2019-09-18 00:58:32 -04:00
Sam fd0188ce3d Add doc strings to Upload, Download, and LoadFlip 2019-09-18 00:13:30 -04:00
Sam 1739a81176 Update version() to use new Exec() command 2019-09-17 23:41:35 -04:00
Sam 30f10d40e1 Update loggedIn() to use new Exec() command 2019-09-17 23:40:36 -04:00
Sam 97cda8c249 Update username() to use new Exec() command 2019-09-17 23:39:51 -04:00
Sam 500a965df2 Increase default channel capacity to 100, and allow it to be set in RunOptions 2019-09-17 22:37:13 -04:00
Sam a11d16faa0 Add RequestPayment to wallet api 2019-09-13 17:08:03 -04:00
Sam c624a0d0f8 Update wallet api to use new Exec() command 2019-09-13 17:01:33 -04:00
Sam 05b6b83d3c Update team api to use new Exec() command 2019-09-13 16:56:16 -04:00
Sam d01fa2a0fb Update chat api to use new Exec() command 2019-09-13 16:55:19 -04:00
Sam da497dd04a Add Exec() 2019-09-13 16:53:08 -04:00
Sam d962600f9c Make flipStatus.ResultInfo and flipStatus.ErrorInfo pointers to easily check if they're nil 2019-09-11 17:41:12 -04:00
Sam e22b187730 First attempt to add LoadFlip() 2019-09-10 17:53:02 -04:00
Sam d99546ae79 Add upload and download methods to chat 2019-09-07 10:06:50 -04:00
Sam ca4ea152e9 Add better error handling 2019-08-10 11:31:00 -04:00
Sam 86cde9fc83 Add better error handling to wallet api 2019-08-10 10:36:06 -04:00
Sam 597feee008 Add RemoveUser() 2019-08-01 17:00:48 -04:00
Sam c468039d94 Add functions for adding groups of Admins, Owners, Readers, and Writers to teams 2019-07-30 17:36:55 -04:00
Sam 881d8cbde1 Add error type to API types 2019-07-30 17:33:28 -04:00
Sam bbe5e9b8a5 Add MemberList() for teams, and make AddUser() return output from MemberList() 2019-07-30 16:39:39 -04:00
Sam 9d51bd0423 Correct interface description 2019-07-30 16:00:49 -04:00
Sam 00f5e77716 Add AddUser() 2019-07-26 16:34:03 -04:00
Sam a7d58558b2 Add CreateTeam() 2019-07-26 15:53:42 -04:00
Sam 0a6f33e429 First pass at adding Team API stuff 2019-07-26 15:33:55 -04:00
Sam 6e94b343de Update wallet types, and make wallet methods adhere to new structure 2019-07-26 14:47:44 -04:00
Sam 103b798008 Add additional types for payments 2019-07-26 14:08:46 -04:00
Sam 692a073417 Move wallet types into types.go, and standardize wallet stuff to more closely match chat stuff 2019-07-26 13:42:17 -04:00
Sam ed6f57d6e6 Cleanup some variable names 2019-07-25 12:23:15 -04:00
Sam 370fce9406 Combine chatIn.go and chatOut.go into just chat.go 2019-07-25 12:20:14 -04:00
Sam 1b089d2833 Add Params to ChatAPI instance so we can fill it with data 2019-07-25 11:28:52 -04:00
Sam a5a50f79cd Catch any JSON errors 2019-07-25 11:22:38 -04:00
Sam 0ea666392d Structs held in ChatAPI need to be pointers in order to not be included in marshalled JSON 2019-07-24 23:01:45 -04:00
Sam d870b1aa3b Move Conversations and Offline from ChatAPI to result, where they belong 2019-07-23 15:43:32 -04:00
Sam 7cc8e14fe2 Move more types into types.go 2019-07-23 14:58:33 -04:00
Sam 9e443921c4 Update result struct to include stuff i forgot 2019-07-22 01:02:42 -04:00
Sam 143dde64f6 Added chat.Read(), along with Next() and Previous() 2019-07-21 22:51:18 -04:00
Sam 22f6125e36 Move more types into types.go and general cleanup 2019-07-21 21:34:50 -04:00
Sam 7c4a1b7ba4 Combine ChatIn and ChatOut structs to ChatAPI and move them to types.go 2019-07-21 21:30:39 -04:00
Sam fc57dcf8ca Change Keybase type to a pointer so it can be re-used 2019-07-03 00:41:24 -04:00
Sam c182fe7e44 Update comments for documentation 2019-07-03 00:15:14 -04:00
Sam 8c7f74594d Make variables in getNewMessages() more generally descriptive, and (hopefully) finally fix the function so it restarts the api-listen command when it dies 2019-07-02 23:47:55 -04:00
Sam 354fa145e1 Put cmd.Start() and cmd.Wait() in a loop so keybase restarts if it dies 2019-07-02 21:09:37 -04:00
Sam 51796165cf Move cmd.Wait() and put scanner in a go routine 2019-07-02 21:02:33 -04:00
Sam 075fa737af Add cmd.Wait() to Keybase.Run() 2019-07-02 21:02:23 -04:00
Sam d05601455b Increment heartbeat counter 2019-07-02 21:01:56 -04:00
Sam dcd697b559 Add option to send a heartbeat throush the channel 2019-07-02 10:54:25 -04:00
Sam 317af3fa39 Change Runner() to Run() and add ability to pass options 2019-06-27 23:08:22 -04:00
Sam e077e50d6d Add StellarAddress() 2019-06-22 19:24:14 -04:00
Sam 17e3a7ab6d Update go.mod to accurately reflect package url for master branch 2019-06-14 23:07:44 -04:00
Sam a3c0fbf447 Add support for git push messages 2019-06-12 17:21:32 -04:00
Sam 63e41c70ab Remove balances. Will readd later 2019-06-11 23:19:52 -04:00