@listen-fire/handbook 0.14.1 → 0.15.0
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/dist/__test__/adapter_schemas.fixture.json +664 -0
- package/dist/builtins.md +69 -23
- package/dist/chapters/builtins.js +3 -3
- package/dist/chapters/expressions.js +10 -8
- package/dist/chapters/foundations.js +1 -1
- package/dist/chapters/patterns.js +100 -0
- package/dist/chapters/reference.js +6 -5
- package/dist/chapters/writes.js +3 -3
- package/dist/examples.md +737 -0
- package/dist/front_page.d.ts +1 -1
- package/dist/front_page.js +9 -13
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/language_search.d.ts +8 -0
- package/dist/language_search.js +18 -11
- package/dist/micro_examples.d.ts +37 -0
- package/dist/micro_examples.js +136 -0
- package/dist/prose_rules.js +3 -0
- package/dist/testing.js +2 -0
- package/dist/units.d.ts +3 -0
- package/dist/units.js +132 -0
- package/package.json +4 -4
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"telegram, whatsapp, system": {
|
|
28
28
|
"capturedAt": "2026-11-01",
|
|
29
29
|
"via": "lf catalog over a project connecting the real @lf/telegram, @lf/whatsapp and @lf/system modules (offline): the whole of each entry"
|
|
30
|
+
},
|
|
31
|
+
"gmail": {
|
|
32
|
+
"capturedAt": "2026-11-02",
|
|
33
|
+
"via": "lf catalog over a project connecting the real @lf/gmail module against fake-channels' Gmail: the whole gmail entry"
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
},
|
|
@@ -357,6 +361,86 @@
|
|
|
357
361
|
"constructionArgs": [],
|
|
358
362
|
"description": "A form at a link, answered once. A write makes it; the node the write names in Fields says what it asks, and its answer lands on the form’s Submissions, typed by that node.",
|
|
359
363
|
"schemaShape": "introspected"
|
|
364
|
+
},
|
|
365
|
+
"gmail": {
|
|
366
|
+
"constructionArgs": [
|
|
367
|
+
{
|
|
368
|
+
"name": "credentials",
|
|
369
|
+
"kind": "credential",
|
|
370
|
+
"required": true
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"canFire": true,
|
|
374
|
+
"listenSettingsBecome": {
|
|
375
|
+
"path": [
|
|
376
|
+
"Messages"
|
|
377
|
+
],
|
|
378
|
+
"aliases": [
|
|
379
|
+
"m"
|
|
380
|
+
],
|
|
381
|
+
"paramFrom": "Message",
|
|
382
|
+
"keys": {
|
|
383
|
+
"labels": {
|
|
384
|
+
"hop": 0,
|
|
385
|
+
"field": "Labels",
|
|
386
|
+
"op": "contains",
|
|
387
|
+
"absent": "INBOX"
|
|
388
|
+
},
|
|
389
|
+
"query": {
|
|
390
|
+
"hop": 0,
|
|
391
|
+
"field": "Query",
|
|
392
|
+
"op": "eq"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"byEvent": {
|
|
396
|
+
"label_added": {
|
|
397
|
+
"path": [
|
|
398
|
+
"Labelings"
|
|
399
|
+
],
|
|
400
|
+
"aliases": [
|
|
401
|
+
"l"
|
|
402
|
+
],
|
|
403
|
+
"paramFrom": "Message",
|
|
404
|
+
"keys": {
|
|
405
|
+
"labels": {
|
|
406
|
+
"hop": 0,
|
|
407
|
+
"field": "Label",
|
|
408
|
+
"op": "in",
|
|
409
|
+
"absent": "user",
|
|
410
|
+
"absentField": "Label Type"
|
|
411
|
+
},
|
|
412
|
+
"query": {
|
|
413
|
+
"hop": 0,
|
|
414
|
+
"field": "Query",
|
|
415
|
+
"op": "eq"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"changed": "a label removed from a message and added again now runs the listen again, where 0.12 ran it once per message and label"
|
|
419
|
+
},
|
|
420
|
+
"message_received": {
|
|
421
|
+
"path": [
|
|
422
|
+
"Messages"
|
|
423
|
+
],
|
|
424
|
+
"aliases": [
|
|
425
|
+
"m"
|
|
426
|
+
],
|
|
427
|
+
"paramFrom": "Message",
|
|
428
|
+
"keys": {
|
|
429
|
+
"labels": {
|
|
430
|
+
"hop": 0,
|
|
431
|
+
"field": "Labels",
|
|
432
|
+
"op": "contains",
|
|
433
|
+
"absent": "INBOX"
|
|
434
|
+
},
|
|
435
|
+
"query": {
|
|
436
|
+
"hop": 0,
|
|
437
|
+
"field": "Query",
|
|
438
|
+
"op": "eq"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
360
444
|
}
|
|
361
445
|
},
|
|
362
446
|
"schemas": {
|
|
@@ -3686,6 +3770,586 @@
|
|
|
3686
3770
|
}
|
|
3687
3771
|
},
|
|
3688
3772
|
"supportsInPlaceUpdate": true
|
|
3773
|
+
},
|
|
3774
|
+
"gmail": {
|
|
3775
|
+
"positions": {
|
|
3776
|
+
"Message": {
|
|
3777
|
+
"properties": {
|
|
3778
|
+
"Message Id": "text",
|
|
3779
|
+
"Thread Id": "text",
|
|
3780
|
+
"Subject": "text",
|
|
3781
|
+
"From": "text",
|
|
3782
|
+
"To": {
|
|
3783
|
+
"kind": "list",
|
|
3784
|
+
"of": "text"
|
|
3785
|
+
},
|
|
3786
|
+
"Cc": {
|
|
3787
|
+
"kind": "list",
|
|
3788
|
+
"of": "text"
|
|
3789
|
+
},
|
|
3790
|
+
"Date": "date",
|
|
3791
|
+
"Snippet": "text",
|
|
3792
|
+
"Body": "text",
|
|
3793
|
+
"Plain Body": "text",
|
|
3794
|
+
"HTML Body": "text",
|
|
3795
|
+
"Labels": {
|
|
3796
|
+
"kind": "list",
|
|
3797
|
+
"of": "text"
|
|
3798
|
+
},
|
|
3799
|
+
"Has Attachments": "boolean",
|
|
3800
|
+
"Query": {
|
|
3801
|
+
"kind": "owned",
|
|
3802
|
+
"name": "GmailQuery",
|
|
3803
|
+
"owner": "gmail"
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"edges": {
|
|
3807
|
+
"Attachments": {
|
|
3808
|
+
"target": "Attachment",
|
|
3809
|
+
"sequenced": "document",
|
|
3810
|
+
"description": "Files attached to the message (zero or more). Listing them is free — the bytes are fetched only when `File` is read."
|
|
3811
|
+
},
|
|
3812
|
+
"Replies": {
|
|
3813
|
+
"target": "Message",
|
|
3814
|
+
"readable": false,
|
|
3815
|
+
"writable": true,
|
|
3816
|
+
"linkable": false,
|
|
3817
|
+
"description": "Write here to reply to this message inside its conversation. The thread, the `Re:` subject and the `In-Reply-To` / `References` headers all come from this parent — a reply names only what it says (`Body`), and may override `Subject`, `To` or `Cc`. Not readable: this connection sends into a conversation, it does not read one back."
|
|
3818
|
+
},
|
|
3819
|
+
"Drafts": {
|
|
3820
|
+
"target": "Draft",
|
|
3821
|
+
"readable": false,
|
|
3822
|
+
"writable": true,
|
|
3823
|
+
"linkable": false,
|
|
3824
|
+
"description": "Write here to keep a reply to this message unsent, for a person to finish. Threaded exactly as a reply along `Replies` is."
|
|
3825
|
+
}
|
|
3826
|
+
},
|
|
3827
|
+
"propertyCapabilities": {
|
|
3828
|
+
"Subject": {
|
|
3829
|
+
"filterOperators": [
|
|
3830
|
+
"eq",
|
|
3831
|
+
"contains"
|
|
3832
|
+
]
|
|
3833
|
+
},
|
|
3834
|
+
"From": {
|
|
3835
|
+
"filterOperators": [
|
|
3836
|
+
"eq",
|
|
3837
|
+
"contains"
|
|
3838
|
+
]
|
|
3839
|
+
},
|
|
3840
|
+
"To": {
|
|
3841
|
+
"filterOperators": [
|
|
3842
|
+
"eq",
|
|
3843
|
+
"in",
|
|
3844
|
+
"contains"
|
|
3845
|
+
]
|
|
3846
|
+
},
|
|
3847
|
+
"Cc": {
|
|
3848
|
+
"filterOperators": [
|
|
3849
|
+
"eq",
|
|
3850
|
+
"in",
|
|
3851
|
+
"contains"
|
|
3852
|
+
]
|
|
3853
|
+
},
|
|
3854
|
+
"Date": {
|
|
3855
|
+
"filterOperators": [
|
|
3856
|
+
"gt",
|
|
3857
|
+
"gte",
|
|
3858
|
+
"lt",
|
|
3859
|
+
"lte"
|
|
3860
|
+
],
|
|
3861
|
+
"orderable": true
|
|
3862
|
+
},
|
|
3863
|
+
"Body": {
|
|
3864
|
+
"filterOperators": [
|
|
3865
|
+
"contains"
|
|
3866
|
+
]
|
|
3867
|
+
},
|
|
3868
|
+
"Labels": {
|
|
3869
|
+
"filterOperators": [
|
|
3870
|
+
"eq",
|
|
3871
|
+
"in",
|
|
3872
|
+
"contains",
|
|
3873
|
+
"containsAny"
|
|
3874
|
+
]
|
|
3875
|
+
},
|
|
3876
|
+
"Query": {
|
|
3877
|
+
"filterOperators": [
|
|
3878
|
+
"eq"
|
|
3879
|
+
]
|
|
3880
|
+
}
|
|
3881
|
+
},
|
|
3882
|
+
"writeOnlyProperties": [
|
|
3883
|
+
"Files"
|
|
3884
|
+
],
|
|
3885
|
+
"description": "One message in the mailbox — who sent it, what it says, and what came attached. Read `Body` for what it says without caring which format arrived. A Message written along the mailbox’s `Messages` edge is a NEW message; a Message written along another message’s `Replies` edge is a reply, and its thread, its `Re:` subject and its reply headers all come from that parent rather than from fields. A send sets `To`, `Subject`, `Body` (and `HTML Body` / `Files` when they apply); a reply needs nothing but a body.",
|
|
3886
|
+
"fieldDocs": {
|
|
3887
|
+
"Message Id": "Gmail's own id for the message.",
|
|
3888
|
+
"Thread Id": "The conversation this message belongs to. Read-only: a reply joins a conversation by being written along that message’s `Replies` edge, never by naming its thread.",
|
|
3889
|
+
"Subject": "On a read, the subject line; a WHERE reaches Gmail as a `subject:` search — `=` and `contains` alike, since Gmail matches words rather than whole strings, and the engine then narrows `=` to an exact match. On a send, the subject to use; a reply that leaves it unset gets the parent’s subject with `Re:` in front.",
|
|
3890
|
+
"From": "The \"From\" header whole, display name included (\"Rita Okoye\" <rita@…>). Read-only on a send too: mail always leaves as the connected mailbox, which is the only address this deployment is allowed to be. A WHERE reaches Gmail as a `from:` search.",
|
|
3891
|
+
"To": "The addresses on the \"To\" header — a list, each either a bare address or `\"Name\" <address>`. Required on a new message; a reply that leaves it unset answers whoever sent the parent. A WHERE reaches Gmail as a `to:` search.",
|
|
3892
|
+
"Cc": "The addresses on the \"Cc\" header, written the same way as `To`. A reply does NOT inherit the parent’s Cc — copy people in deliberately. A WHERE reaches Gmail as a `cc:` search.",
|
|
3893
|
+
"Date": "When Gmail received the message. Bounds reach the search as `after:` / `before:`, which are whole-second and inclusive over there — the engine narrows the edges.",
|
|
3894
|
+
"Snippet": "Gmail's own short preview.",
|
|
3895
|
+
"Body": "On a read, the normalised body — plain text, derived from the HTML when only HTML arrived; use this for \"what it says\", and a `contains` reaches Gmail as a word search. On a send, the plain-text body. Every send needs a `Body` or an `HTML Body`.",
|
|
3896
|
+
"Plain Body": "The plain-text alternative exactly as it arrived, or nothing when the message was HTML only. Read-only — `Body` is what a send sets.",
|
|
3897
|
+
"HTML Body": "The HTML alternative. Set it alongside `Body` on a send and the message goes out as both, so a reader that cannot show HTML still sees the text.",
|
|
3898
|
+
"Files": "Files to attach to a message being sent — a list of file values the run already holds (an attachment read off another message, a document a movement produced). Send-side only: the files on a RECEIVED message are on its `Attachments` edge.",
|
|
3899
|
+
"Labels": "Label names — a user label as the mailbox calls it (Deals), Gmail’s own in capitals (INBOX, UNREAD, IMPORTANT), in a walk and in a listen alike. A WHERE reaches the search as `label:`, and an OR of `CONTAINS` hears mail carrying any of them (`m.Labels CONTAINS \"Deals\" OR m.Labels CONTAINS \"Hiring\"`). This connection can read them and can never set one.",
|
|
3900
|
+
"Has Attachments": "Whether walking `Attachments` would find anything — true without fetching a single byte.",
|
|
3901
|
+
"Query": "A Gmail search written exactly as in Gmail’s own search box (`m.Query == \"from:@acme.com has:attachment\"`): what is searched for comes back. Compared with `==` only. Read, it is the search the message was found by (what its listen or walk compared it with), and nothing on a message found otherwise."
|
|
3902
|
+
},
|
|
3903
|
+
"fieldIds": {
|
|
3904
|
+
"Message Id": "id",
|
|
3905
|
+
"Thread Id": "threadId",
|
|
3906
|
+
"Subject": "subject",
|
|
3907
|
+
"From": "from",
|
|
3908
|
+
"To": "to",
|
|
3909
|
+
"Cc": "cc",
|
|
3910
|
+
"Date": "date",
|
|
3911
|
+
"Snippet": "snippet",
|
|
3912
|
+
"Body": "body",
|
|
3913
|
+
"Plain Body": "bodyText",
|
|
3914
|
+
"HTML Body": "bodyHtml",
|
|
3915
|
+
"Labels": "labels",
|
|
3916
|
+
"Has Attachments": "hasAttachments",
|
|
3917
|
+
"Query": "query"
|
|
3918
|
+
},
|
|
3919
|
+
"changedFields": {
|
|
3920
|
+
"Labels": {
|
|
3921
|
+
"release": "0.13.0",
|
|
3922
|
+
"note": "it holds label names (`Deals`) where it held label ids (`Label_12`); Gmail’s own labels (`INBOX`, `UNREAD`) are spelled as before",
|
|
3923
|
+
"unchangedValues": [
|
|
3924
|
+
"INBOX",
|
|
3925
|
+
"UNREAD",
|
|
3926
|
+
"STARRED",
|
|
3927
|
+
"IMPORTANT",
|
|
3928
|
+
"SENT",
|
|
3929
|
+
"DRAFT",
|
|
3930
|
+
"SPAM",
|
|
3931
|
+
"TRASH",
|
|
3932
|
+
"CHAT",
|
|
3933
|
+
"CATEGORY_PERSONAL",
|
|
3934
|
+
"CATEGORY_SOCIAL",
|
|
3935
|
+
"CATEGORY_PROMOTIONS",
|
|
3936
|
+
"CATEGORY_UPDATES",
|
|
3937
|
+
"CATEGORY_FORUMS"
|
|
3938
|
+
]
|
|
3939
|
+
}
|
|
3940
|
+
}
|
|
3941
|
+
},
|
|
3942
|
+
"Labeling": {
|
|
3943
|
+
"properties": {
|
|
3944
|
+
"Id": "text",
|
|
3945
|
+
"Label": "text",
|
|
3946
|
+
"Label Type": {
|
|
3947
|
+
"kind": "enum",
|
|
3948
|
+
"options": [
|
|
3949
|
+
"system",
|
|
3950
|
+
"user"
|
|
3951
|
+
]
|
|
3952
|
+
},
|
|
3953
|
+
"Query": {
|
|
3954
|
+
"kind": "owned",
|
|
3955
|
+
"name": "GmailQuery",
|
|
3956
|
+
"owner": "gmail"
|
|
3957
|
+
},
|
|
3958
|
+
"Message Id": "text",
|
|
3959
|
+
"Thread Id": "text",
|
|
3960
|
+
"Subject": "text",
|
|
3961
|
+
"From": "text",
|
|
3962
|
+
"To": {
|
|
3963
|
+
"kind": "list",
|
|
3964
|
+
"of": "text"
|
|
3965
|
+
},
|
|
3966
|
+
"Cc": {
|
|
3967
|
+
"kind": "list",
|
|
3968
|
+
"of": "text"
|
|
3969
|
+
},
|
|
3970
|
+
"Date": "date",
|
|
3971
|
+
"Snippet": "text",
|
|
3972
|
+
"Body": "text",
|
|
3973
|
+
"Plain Body": "text",
|
|
3974
|
+
"HTML Body": "text",
|
|
3975
|
+
"Labels": {
|
|
3976
|
+
"kind": "list",
|
|
3977
|
+
"of": "text"
|
|
3978
|
+
},
|
|
3979
|
+
"Has Attachments": "boolean"
|
|
3980
|
+
},
|
|
3981
|
+
"edges": {
|
|
3982
|
+
"Message": {
|
|
3983
|
+
"target": "Message",
|
|
3984
|
+
"linkable": false,
|
|
3985
|
+
"description": "The message that was labelled, whole: walk its `Attachments`, or reply along its `Replies`."
|
|
3986
|
+
}
|
|
3987
|
+
},
|
|
3988
|
+
"propertyCapabilities": {
|
|
3989
|
+
"Label": {
|
|
3990
|
+
"filterOperators": [
|
|
3991
|
+
"eq",
|
|
3992
|
+
"in"
|
|
3993
|
+
]
|
|
3994
|
+
},
|
|
3995
|
+
"Label Type": {
|
|
3996
|
+
"filterOperators": [
|
|
3997
|
+
"eq",
|
|
3998
|
+
"in"
|
|
3999
|
+
]
|
|
4000
|
+
},
|
|
4001
|
+
"Query": {
|
|
4002
|
+
"filterOperators": [
|
|
4003
|
+
"eq"
|
|
4004
|
+
]
|
|
4005
|
+
},
|
|
4006
|
+
"Subject": {
|
|
4007
|
+
"filterOperators": [
|
|
4008
|
+
"eq",
|
|
4009
|
+
"contains"
|
|
4010
|
+
]
|
|
4011
|
+
},
|
|
4012
|
+
"From": {
|
|
4013
|
+
"filterOperators": [
|
|
4014
|
+
"eq",
|
|
4015
|
+
"contains"
|
|
4016
|
+
]
|
|
4017
|
+
},
|
|
4018
|
+
"To": {
|
|
4019
|
+
"filterOperators": [
|
|
4020
|
+
"eq",
|
|
4021
|
+
"in",
|
|
4022
|
+
"contains"
|
|
4023
|
+
]
|
|
4024
|
+
},
|
|
4025
|
+
"Cc": {
|
|
4026
|
+
"filterOperators": [
|
|
4027
|
+
"eq",
|
|
4028
|
+
"in",
|
|
4029
|
+
"contains"
|
|
4030
|
+
]
|
|
4031
|
+
},
|
|
4032
|
+
"Date": {
|
|
4033
|
+
"filterOperators": [
|
|
4034
|
+
"gt",
|
|
4035
|
+
"gte",
|
|
4036
|
+
"lt",
|
|
4037
|
+
"lte"
|
|
4038
|
+
],
|
|
4039
|
+
"orderable": true
|
|
4040
|
+
},
|
|
4041
|
+
"Body": {
|
|
4042
|
+
"filterOperators": [
|
|
4043
|
+
"contains"
|
|
4044
|
+
]
|
|
4045
|
+
},
|
|
4046
|
+
"Labels": {
|
|
4047
|
+
"filterOperators": [
|
|
4048
|
+
"eq",
|
|
4049
|
+
"in",
|
|
4050
|
+
"contains",
|
|
4051
|
+
"containsAny"
|
|
4052
|
+
]
|
|
4053
|
+
}
|
|
4054
|
+
},
|
|
4055
|
+
"description": "Each label added to a message already in the mailbox — a person filing mail, or a filter doing it later: what a listen hears, never a list to read. Narrow it by `Label` (a label by its name) or `Label Type` (`\"user\"` for the mailbox’s own labels), and by `Query`.",
|
|
4056
|
+
"fieldDocs": {
|
|
4057
|
+
"Id": "This addition: the message, the label and the moment in the mailbox’s history it was added.",
|
|
4058
|
+
"Label": "The label that was added, by name: a user label as the mailbox calls it (Deals), Gmail’s own in capitals (INBOX, STARRED), as `Labels` on a message. A listen names it the same way (`l.Label == \"Deals\"`); a label the mailbox does not have fails the listen, naming the ones it has.",
|
|
4059
|
+
"Label Type": "`user` for the mailbox’s own labels, `system` for Gmail’s (inbox, unread, starred, important, sent, draft, spam, trash, chat, the category tabs), which change as mail is read and filed.",
|
|
4060
|
+
"Query": "A Gmail search written exactly as in Gmail’s own search box (`m.Query == \"from:@acme.com has:attachment\"`): what is searched for comes back. Compared with `==` only. Read, it is the search the message was found by (what its listen or walk compared it with), and nothing on a message found otherwise.",
|
|
4061
|
+
"Message Id": "Gmail's own id for the message.",
|
|
4062
|
+
"Thread Id": "The conversation this message belongs to. Read-only: a reply joins a conversation by being written along that message’s `Replies` edge, never by naming its thread.",
|
|
4063
|
+
"Subject": "On a read, the subject line; a WHERE reaches Gmail as a `subject:` search — `=` and `contains` alike, since Gmail matches words rather than whole strings, and the engine then narrows `=` to an exact match. On a send, the subject to use; a reply that leaves it unset gets the parent’s subject with `Re:` in front.",
|
|
4064
|
+
"From": "The \"From\" header whole, display name included (\"Rita Okoye\" <rita@…>). Read-only on a send too: mail always leaves as the connected mailbox, which is the only address this deployment is allowed to be. A WHERE reaches Gmail as a `from:` search.",
|
|
4065
|
+
"To": "The addresses on the \"To\" header — a list, each either a bare address or `\"Name\" <address>`. Required on a new message; a reply that leaves it unset answers whoever sent the parent. A WHERE reaches Gmail as a `to:` search.",
|
|
4066
|
+
"Cc": "The addresses on the \"Cc\" header, written the same way as `To`. A reply does NOT inherit the parent’s Cc — copy people in deliberately. A WHERE reaches Gmail as a `cc:` search.",
|
|
4067
|
+
"Date": "When Gmail received the message. Bounds reach the search as `after:` / `before:`, which are whole-second and inclusive over there — the engine narrows the edges.",
|
|
4068
|
+
"Snippet": "Gmail's own short preview.",
|
|
4069
|
+
"Body": "On a read, the normalised body — plain text, derived from the HTML when only HTML arrived; use this for \"what it says\", and a `contains` reaches Gmail as a word search. On a send, the plain-text body. Every send needs a `Body` or an `HTML Body`.",
|
|
4070
|
+
"Plain Body": "The plain-text alternative exactly as it arrived, or nothing when the message was HTML only. Read-only — `Body` is what a send sets.",
|
|
4071
|
+
"HTML Body": "The HTML alternative. Set it alongside `Body` on a send and the message goes out as both, so a reader that cannot show HTML still sees the text.",
|
|
4072
|
+
"Labels": "Label names — a user label as the mailbox calls it (Deals), Gmail’s own in capitals (INBOX, UNREAD, IMPORTANT), in a walk and in a listen alike. A WHERE reaches the search as `label:`, and an OR of `CONTAINS` hears mail carrying any of them (`m.Labels CONTAINS \"Deals\" OR m.Labels CONTAINS \"Hiring\"`). This connection can read them and can never set one.",
|
|
4073
|
+
"Has Attachments": "Whether walking `Attachments` would find anything — true without fetching a single byte."
|
|
4074
|
+
},
|
|
4075
|
+
"fieldIds": {
|
|
4076
|
+
"Id": "labelingId",
|
|
4077
|
+
"Label": "label",
|
|
4078
|
+
"Label Type": "labelType",
|
|
4079
|
+
"Query": "query",
|
|
4080
|
+
"Message Id": "id",
|
|
4081
|
+
"Thread Id": "threadId",
|
|
4082
|
+
"Subject": "subject",
|
|
4083
|
+
"From": "from",
|
|
4084
|
+
"To": "to",
|
|
4085
|
+
"Cc": "cc",
|
|
4086
|
+
"Date": "date",
|
|
4087
|
+
"Snippet": "snippet",
|
|
4088
|
+
"Body": "body",
|
|
4089
|
+
"Plain Body": "bodyText",
|
|
4090
|
+
"HTML Body": "bodyHtml",
|
|
4091
|
+
"Labels": "labels",
|
|
4092
|
+
"Has Attachments": "hasAttachments"
|
|
4093
|
+
},
|
|
4094
|
+
"changedFields": {
|
|
4095
|
+
"Labels": {
|
|
4096
|
+
"release": "0.13.0",
|
|
4097
|
+
"note": "it holds label names (`Deals`) where it held label ids (`Label_12`); Gmail’s own labels (`INBOX`, `UNREAD`) are spelled as before",
|
|
4098
|
+
"unchangedValues": [
|
|
4099
|
+
"INBOX",
|
|
4100
|
+
"UNREAD",
|
|
4101
|
+
"STARRED",
|
|
4102
|
+
"IMPORTANT",
|
|
4103
|
+
"SENT",
|
|
4104
|
+
"DRAFT",
|
|
4105
|
+
"SPAM",
|
|
4106
|
+
"TRASH",
|
|
4107
|
+
"CHAT",
|
|
4108
|
+
"CATEGORY_PERSONAL",
|
|
4109
|
+
"CATEGORY_SOCIAL",
|
|
4110
|
+
"CATEGORY_PROMOTIONS",
|
|
4111
|
+
"CATEGORY_UPDATES",
|
|
4112
|
+
"CATEGORY_FORUMS"
|
|
4113
|
+
]
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
},
|
|
4117
|
+
"Draft": {
|
|
4118
|
+
"properties": {
|
|
4119
|
+
"Id": "text",
|
|
4120
|
+
"Message Id": "text",
|
|
4121
|
+
"Thread Id": "text",
|
|
4122
|
+
"To": {
|
|
4123
|
+
"kind": "list",
|
|
4124
|
+
"of": "text"
|
|
4125
|
+
},
|
|
4126
|
+
"Cc": {
|
|
4127
|
+
"kind": "list",
|
|
4128
|
+
"of": "text"
|
|
4129
|
+
},
|
|
4130
|
+
"Subject": "text",
|
|
4131
|
+
"Body": "text",
|
|
4132
|
+
"HTML Body": "text"
|
|
4133
|
+
},
|
|
4134
|
+
"edges": {},
|
|
4135
|
+
"writeOnlyProperties": [
|
|
4136
|
+
"Files"
|
|
4137
|
+
],
|
|
4138
|
+
"description": "A message kept unsent in the mailbox. A Draft written along the mailbox’s `Drafts` edge is kept unsent for a person to finish; along a message’s `Drafts` edge it is a reply kept unsent, threaded as a reply is. Drafts work only where the mailbox was signed in with drafts enabled (the `gmail_drafts` credential). Every field is optional: a person finishes the draft. The write hands back its `Id`, `Message Id` and `Thread Id`.",
|
|
4139
|
+
"fieldDocs": {
|
|
4140
|
+
"Id": "Gmail's id for the draft (not its message's).",
|
|
4141
|
+
"Message Id": "The id of the message the draft holds.",
|
|
4142
|
+
"Thread Id": "The conversation the draft belongs to: its parent’s, on a reply draft.",
|
|
4143
|
+
"To": "The addresses on the \"To\" header. A reply draft that leaves it unset answers whoever sent the parent.",
|
|
4144
|
+
"Cc": "The addresses on the \"Cc\" header.",
|
|
4145
|
+
"Subject": "The subject line; a reply draft that leaves it unset gets the parent’s with `Re:` in front.",
|
|
4146
|
+
"Body": "The plain-text body.",
|
|
4147
|
+
"HTML Body": "The HTML alternative, set alongside `Body`.",
|
|
4148
|
+
"Files": "Files to attach — a list of file values the run already holds."
|
|
4149
|
+
},
|
|
4150
|
+
"fieldIds": {
|
|
4151
|
+
"Id": "id",
|
|
4152
|
+
"Message Id": "messageId",
|
|
4153
|
+
"Thread Id": "threadId",
|
|
4154
|
+
"To": "to",
|
|
4155
|
+
"Cc": "cc",
|
|
4156
|
+
"Subject": "subject",
|
|
4157
|
+
"Body": "body",
|
|
4158
|
+
"HTML Body": "bodyHtml"
|
|
4159
|
+
}
|
|
4160
|
+
},
|
|
4161
|
+
"Attachment": {
|
|
4162
|
+
"properties": {
|
|
4163
|
+
"Name": "text",
|
|
4164
|
+
"Content Type": "text",
|
|
4165
|
+
"Size": "number",
|
|
4166
|
+
"File": "file"
|
|
4167
|
+
},
|
|
4168
|
+
"edges": {},
|
|
4169
|
+
"description": "One file on a message. Gmail serves the bytes from their own endpoint, so the name, type and size cost nothing and only `File` costs a fetch.",
|
|
4170
|
+
"fieldDocs": {
|
|
4171
|
+
"Size": "Bytes, as Gmail reports them.",
|
|
4172
|
+
"File": "The bytes themselves — fetched when read, so a message whose files nobody opens costs nothing."
|
|
4173
|
+
},
|
|
4174
|
+
"fieldIds": {
|
|
4175
|
+
"Name": "filename",
|
|
4176
|
+
"Content Type": "contentType",
|
|
4177
|
+
"Size": "size",
|
|
4178
|
+
"File": "data"
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
},
|
|
4182
|
+
"collections": {
|
|
4183
|
+
"Messages": {
|
|
4184
|
+
"target": "Message",
|
|
4185
|
+
"capability": {
|
|
4186
|
+
"filter": "native",
|
|
4187
|
+
"order": "bounded",
|
|
4188
|
+
"supportsLimit": true,
|
|
4189
|
+
"naturalOrder": {
|
|
4190
|
+
"field": "Date",
|
|
4191
|
+
"direction": "desc"
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4194
|
+
"listenable": true,
|
|
4195
|
+
"cursor": true,
|
|
4196
|
+
"identity": "Message Id",
|
|
4197
|
+
"delivery": "polled",
|
|
4198
|
+
"pollEverySeconds": 60
|
|
4199
|
+
},
|
|
4200
|
+
"Labelings": {
|
|
4201
|
+
"target": "Labeling",
|
|
4202
|
+
"capability": {
|
|
4203
|
+
"filter": "native",
|
|
4204
|
+
"supportsLimit": false
|
|
4205
|
+
},
|
|
4206
|
+
"readable": false,
|
|
4207
|
+
"listenable": true,
|
|
4208
|
+
"cursor": true,
|
|
4209
|
+
"identity": "Id",
|
|
4210
|
+
"delivery": "polled",
|
|
4211
|
+
"pollEverySeconds": 60
|
|
4212
|
+
},
|
|
4213
|
+
"Drafts": {
|
|
4214
|
+
"target": "Draft",
|
|
4215
|
+
"readable": false
|
|
4216
|
+
}
|
|
4217
|
+
},
|
|
4218
|
+
"writableRoots": {
|
|
4219
|
+
"Message": {
|
|
4220
|
+
"fields": {
|
|
4221
|
+
"Subject": "text",
|
|
4222
|
+
"To": {
|
|
4223
|
+
"kind": "list",
|
|
4224
|
+
"of": "text"
|
|
4225
|
+
},
|
|
4226
|
+
"Cc": {
|
|
4227
|
+
"kind": "list",
|
|
4228
|
+
"of": "text"
|
|
4229
|
+
},
|
|
4230
|
+
"Body": "text",
|
|
4231
|
+
"HTML Body": "text",
|
|
4232
|
+
"Files": {
|
|
4233
|
+
"kind": "list",
|
|
4234
|
+
"of": "file"
|
|
4235
|
+
}
|
|
4236
|
+
},
|
|
4237
|
+
"resultShape": {
|
|
4238
|
+
"externalId": "text",
|
|
4239
|
+
"url": "text",
|
|
4240
|
+
"Message Id": "text",
|
|
4241
|
+
"Thread Id": "text",
|
|
4242
|
+
"Subject": "text",
|
|
4243
|
+
"From": "text",
|
|
4244
|
+
"To": {
|
|
4245
|
+
"kind": "list",
|
|
4246
|
+
"of": "text"
|
|
4247
|
+
},
|
|
4248
|
+
"Cc": {
|
|
4249
|
+
"kind": "list",
|
|
4250
|
+
"of": "text"
|
|
4251
|
+
},
|
|
4252
|
+
"Date": "date",
|
|
4253
|
+
"Snippet": "text",
|
|
4254
|
+
"Body": "text",
|
|
4255
|
+
"Plain Body": "text",
|
|
4256
|
+
"HTML Body": "text",
|
|
4257
|
+
"Labels": {
|
|
4258
|
+
"kind": "list",
|
|
4259
|
+
"of": "text"
|
|
4260
|
+
},
|
|
4261
|
+
"Has Attachments": "boolean",
|
|
4262
|
+
"Query": {
|
|
4263
|
+
"kind": "owned",
|
|
4264
|
+
"name": "GmailQuery",
|
|
4265
|
+
"owner": "gmail"
|
|
4266
|
+
},
|
|
4267
|
+
"Files": {
|
|
4268
|
+
"kind": "list",
|
|
4269
|
+
"of": "file"
|
|
4270
|
+
}
|
|
4271
|
+
},
|
|
4272
|
+
"edges": {
|
|
4273
|
+
"Attachments": {
|
|
4274
|
+
"target": "Attachment",
|
|
4275
|
+
"sequenced": "document",
|
|
4276
|
+
"description": "Files attached to the message (zero or more). Listing them is free — the bytes are fetched only when `File` is read."
|
|
4277
|
+
},
|
|
4278
|
+
"Replies": {
|
|
4279
|
+
"target": "Message",
|
|
4280
|
+
"readable": false,
|
|
4281
|
+
"writable": true,
|
|
4282
|
+
"linkable": false,
|
|
4283
|
+
"description": "Write here to reply to this message inside its conversation. The thread, the `Re:` subject and the `In-Reply-To` / `References` headers all come from this parent — a reply names only what it says (`Body`), and may override `Subject`, `To` or `Cc`. Not readable: this connection sends into a conversation, it does not read one back."
|
|
4284
|
+
},
|
|
4285
|
+
"Drafts": {
|
|
4286
|
+
"target": "Draft",
|
|
4287
|
+
"readable": false,
|
|
4288
|
+
"writable": true,
|
|
4289
|
+
"linkable": false,
|
|
4290
|
+
"description": "Write here to keep a reply to this message unsent, for a person to finish. Threaded exactly as a reply along `Replies` is."
|
|
4291
|
+
}
|
|
4292
|
+
},
|
|
4293
|
+
"fieldDocs": {
|
|
4294
|
+
"Subject": "On a read, the subject line; a WHERE reaches Gmail as a `subject:` search — `=` and `contains` alike, since Gmail matches words rather than whole strings, and the engine then narrows `=` to an exact match. On a send, the subject to use; a reply that leaves it unset gets the parent’s subject with `Re:` in front.",
|
|
4295
|
+
"To": "The addresses on the \"To\" header — a list, each either a bare address or `\"Name\" <address>`. Required on a new message; a reply that leaves it unset answers whoever sent the parent. A WHERE reaches Gmail as a `to:` search.",
|
|
4296
|
+
"Cc": "The addresses on the \"Cc\" header, written the same way as `To`. A reply does NOT inherit the parent’s Cc — copy people in deliberately. A WHERE reaches Gmail as a `cc:` search.",
|
|
4297
|
+
"Body": "On a read, the normalised body — plain text, derived from the HTML when only HTML arrived; use this for \"what it says\", and a `contains` reaches Gmail as a word search. On a send, the plain-text body. Every send needs a `Body` or an `HTML Body`.",
|
|
4298
|
+
"HTML Body": "The HTML alternative. Set it alongside `Body` on a send and the message goes out as both, so a reader that cannot show HTML still sees the text.",
|
|
4299
|
+
"Files": "Files to attach to a message being sent — a list of file values the run already holds (an attachment read off another message, a document a movement produced). Send-side only: the files on a RECEIVED message are on its `Attachments` edge."
|
|
4300
|
+
}
|
|
4301
|
+
},
|
|
4302
|
+
"Draft": {
|
|
4303
|
+
"fields": {
|
|
4304
|
+
"To": {
|
|
4305
|
+
"kind": "list",
|
|
4306
|
+
"of": "text"
|
|
4307
|
+
},
|
|
4308
|
+
"Cc": {
|
|
4309
|
+
"kind": "list",
|
|
4310
|
+
"of": "text"
|
|
4311
|
+
},
|
|
4312
|
+
"Subject": "text",
|
|
4313
|
+
"Body": "text",
|
|
4314
|
+
"HTML Body": "text",
|
|
4315
|
+
"Files": {
|
|
4316
|
+
"kind": "list",
|
|
4317
|
+
"of": "file"
|
|
4318
|
+
}
|
|
4319
|
+
},
|
|
4320
|
+
"resultShape": {
|
|
4321
|
+
"externalId": "text",
|
|
4322
|
+
"url": "text",
|
|
4323
|
+
"Id": "text",
|
|
4324
|
+
"Message Id": "text",
|
|
4325
|
+
"Thread Id": "text",
|
|
4326
|
+
"To": {
|
|
4327
|
+
"kind": "list",
|
|
4328
|
+
"of": "text"
|
|
4329
|
+
},
|
|
4330
|
+
"Cc": {
|
|
4331
|
+
"kind": "list",
|
|
4332
|
+
"of": "text"
|
|
4333
|
+
},
|
|
4334
|
+
"Subject": "text",
|
|
4335
|
+
"Body": "text",
|
|
4336
|
+
"HTML Body": "text",
|
|
4337
|
+
"Files": {
|
|
4338
|
+
"kind": "list",
|
|
4339
|
+
"of": "file"
|
|
4340
|
+
}
|
|
4341
|
+
},
|
|
4342
|
+
"fieldDocs": {
|
|
4343
|
+
"To": "The addresses on the \"To\" header. A reply draft that leaves it unset answers whoever sent the parent.",
|
|
4344
|
+
"Cc": "The addresses on the \"Cc\" header.",
|
|
4345
|
+
"Subject": "The subject line; a reply draft that leaves it unset gets the parent’s with `Re:` in front.",
|
|
4346
|
+
"Body": "The plain-text body.",
|
|
4347
|
+
"HTML Body": "The HTML alternative, set alongside `Body`.",
|
|
4348
|
+
"Files": "Files to attach — a list of file values the run already holds."
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
"supportsInPlaceUpdate": true
|
|
3689
4353
|
}
|
|
3690
4354
|
}
|
|
3691
4355
|
}
|