sf-queue-sdk 0.2.0b31__tar.gz → 0.2.0b40__tar.gz
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.
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/PKG-INFO +1 -1
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/pyproject.toml +1 -1
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/__init__.py +1 -1
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/email/v1/email_pb2.py +6 -6
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/email/v1/email_pb2.pyi +10 -4
- sf_queue_sdk-0.2.0b40/queue_sdk/generated/queue/workflow/v1/workflow_pb2.py +47 -0
- sf_queue_sdk-0.2.0b40/queue_sdk/generated/queue/workflow/v1/workflow_pb2.pyi +52 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/.gitignore +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/README.md +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/client.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/__init__.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/tool_assignment/v1/tool_assignment_pb2.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/tool_assignment/v1/tool_assignment_pb2.pyi +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/topic_assignment/v1/topic_assignment_pb2.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/topic_assignment/v1/topic_assignment_pb2.pyi +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/query.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/__init__.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/base_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/email_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/pdf_to_image_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/recommendation_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/tool_assignment_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/queues/topic_assignment_queue.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/redis_client.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/sanitize.py +0 -0
- {sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/types.py +0 -0
{sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/email/v1/email_pb2.py
RENAMED
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aqueue/email/v1/email.proto\x12\x0equeue.email.v1\"5\n\x0b\x45mailButton\x12\x12\n\x04text\x18\x01 \x01(\tR\x04text\x12\x12\n\x04href\x18\x02 \x01(\tR\x04href\"^\n\nEmailImage\x12\x10\n\x03src\x18\x01 \x01(\tR\x03src\x12\x10\n\x03\x61lt\x18\x02 \x01(\tR\x03\x61lt\x12\x14\n\x05width\x18\x03 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x04 \x01(\x05R\x06height\"\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aqueue/email/v1/email.proto\x12\x0equeue.email.v1\"5\n\x0b\x45mailButton\x12\x12\n\x04text\x18\x01 \x01(\tR\x04text\x12\x12\n\x04href\x18\x02 \x01(\tR\x04href\"^\n\nEmailImage\x12\x10\n\x03src\x18\x01 \x01(\tR\x03src\x12\x10\n\x03\x61lt\x18\x02 \x01(\tR\x03\x61lt\x12\x14\n\x05width\x18\x03 \x01(\x05R\x05width\x12\x16\n\x06height\x18\x04 \x01(\x05R\x06height\"\xf1\x02\n\x0c\x45mailRequest\x12\x0e\n\x02to\x18\x01 \x01(\tR\x02to\x12\x18\n\x07preview\x18\x02 \x01(\tR\x07preview\x12\x18\n\x07subject\x18\x03 \x01(\tR\x07subject\x12\x1e\n\nparagraphs\x18\x04 \x03(\tR\nparagraphs\x12\x33\n\x06\x62utton\x18\x05 \x01(\x0b\x32\x1b.queue.email.v1.EmailButtonR\x06\x62utton\x12\x19\n\x08reply_to\x18\x06 \x01(\tR\x07replyTo\x12\x30\n\x05image\x18\x07 \x01(\x0b\x32\x1a.queue.email.v1.EmailImageR\x05image\x12\x18\n\x07service\x18\x08 \x01(\tR\x07service\x12\x1a\n\x08template\x18\t \x01(\tR\x08template\x12\x12\n\x04html\x18\n \x01(\tR\x04html\x12\x12\n\x04\x66rom\x18\x0b \x01(\tR\x04\x66rom\x12\x1d\n\nresend_key\x18\x0c \x01(\tR\tresendKey\"\xf6\x02\n\x11\x42\x61tchEmailRequest\x12\x0e\n\x02to\x18\x01 \x03(\tR\x02to\x12\x18\n\x07preview\x18\x02 \x01(\tR\x07preview\x12\x18\n\x07subject\x18\x03 \x01(\tR\x07subject\x12\x1e\n\nparagraphs\x18\x04 \x03(\tR\nparagraphs\x12\x33\n\x06\x62utton\x18\x05 \x01(\x0b\x32\x1b.queue.email.v1.EmailButtonR\x06\x62utton\x12\x19\n\x08reply_to\x18\x06 \x01(\tR\x07replyTo\x12\x30\n\x05image\x18\x07 \x01(\x0b\x32\x1a.queue.email.v1.EmailImageR\x05image\x12\x18\n\x07service\x18\x08 \x01(\tR\x07service\x12\x1a\n\x08template\x18\t \x01(\tR\x08template\x12\x12\n\x04html\x18\n \x01(\tR\x04html\x12\x12\n\x04\x66rom\x18\x0b \x01(\tR\x04\x66rom\x12\x1d\n\nresend_key\x18\x0c \x01(\tR\tresendKey\"^\n\rEmailResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x1d\n\nmessage_id\x18\x02 \x01(\tR\tmessageId\x12\x14\n\x05\x65rror\x18\x03 \x01(\tR\x05\x65rrorBLZJgithub.com/StudyFetch/sf-queue/packages/go/proto-go/queue/email/v1;emailv1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -37,9 +37,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
37
37
|
_globals['_EMAILIMAGE']._serialized_start=101
|
|
38
38
|
_globals['_EMAILIMAGE']._serialized_end=195
|
|
39
39
|
_globals['_EMAILREQUEST']._serialized_start=198
|
|
40
|
-
_globals['_EMAILREQUEST']._serialized_end=
|
|
41
|
-
_globals['_BATCHEMAILREQUEST']._serialized_start=
|
|
42
|
-
_globals['_BATCHEMAILREQUEST']._serialized_end=
|
|
43
|
-
_globals['_EMAILRESPONSE']._serialized_start=
|
|
44
|
-
_globals['_EMAILRESPONSE']._serialized_end=
|
|
40
|
+
_globals['_EMAILREQUEST']._serialized_end=567
|
|
41
|
+
_globals['_BATCHEMAILREQUEST']._serialized_start=570
|
|
42
|
+
_globals['_BATCHEMAILREQUEST']._serialized_end=944
|
|
43
|
+
_globals['_EMAILRESPONSE']._serialized_start=946
|
|
44
|
+
_globals['_EMAILRESPONSE']._serialized_end=1040
|
|
45
45
|
# @@protoc_insertion_point(module_scope)
|
{sf_queue_sdk-0.2.0b31 → sf_queue_sdk-0.2.0b40}/queue_sdk/generated/queue/email/v1/email_pb2.pyi
RENAMED
|
@@ -27,7 +27,7 @@ class EmailImage(_message.Message):
|
|
|
27
27
|
def __init__(self, src: _Optional[str] = ..., alt: _Optional[str] = ..., width: _Optional[int] = ..., height: _Optional[int] = ...) -> None: ...
|
|
28
28
|
|
|
29
29
|
class EmailRequest(_message.Message):
|
|
30
|
-
__slots__ = ("to", "preview", "subject", "paragraphs", "button", "reply_to", "image", "service", "template", "html")
|
|
30
|
+
__slots__ = ("to", "preview", "subject", "paragraphs", "button", "reply_to", "image", "service", "template", "html", "resend_key")
|
|
31
31
|
TO_FIELD_NUMBER: _ClassVar[int]
|
|
32
32
|
PREVIEW_FIELD_NUMBER: _ClassVar[int]
|
|
33
33
|
SUBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -38,6 +38,8 @@ class EmailRequest(_message.Message):
|
|
|
38
38
|
SERVICE_FIELD_NUMBER: _ClassVar[int]
|
|
39
39
|
TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
40
40
|
HTML_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
RESEND_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
41
43
|
to: str
|
|
42
44
|
preview: str
|
|
43
45
|
subject: str
|
|
@@ -48,10 +50,11 @@ class EmailRequest(_message.Message):
|
|
|
48
50
|
service: str
|
|
49
51
|
template: str
|
|
50
52
|
html: str
|
|
51
|
-
|
|
53
|
+
resend_key: str
|
|
54
|
+
def __init__(self, to: _Optional[str] = ..., preview: _Optional[str] = ..., subject: _Optional[str] = ..., paragraphs: _Optional[_Iterable[str]] = ..., button: _Optional[_Union[EmailButton, _Mapping]] = ..., reply_to: _Optional[str] = ..., image: _Optional[_Union[EmailImage, _Mapping]] = ..., service: _Optional[str] = ..., template: _Optional[str] = ..., html: _Optional[str] = ..., resend_key: _Optional[str] = ..., **kwargs) -> None: ...
|
|
52
55
|
|
|
53
56
|
class BatchEmailRequest(_message.Message):
|
|
54
|
-
__slots__ = ("to", "preview", "subject", "paragraphs", "button", "reply_to", "image", "service", "template", "html")
|
|
57
|
+
__slots__ = ("to", "preview", "subject", "paragraphs", "button", "reply_to", "image", "service", "template", "html", "resend_key")
|
|
55
58
|
TO_FIELD_NUMBER: _ClassVar[int]
|
|
56
59
|
PREVIEW_FIELD_NUMBER: _ClassVar[int]
|
|
57
60
|
SUBJECT_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -62,6 +65,8 @@ class BatchEmailRequest(_message.Message):
|
|
|
62
65
|
SERVICE_FIELD_NUMBER: _ClassVar[int]
|
|
63
66
|
TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
|
64
67
|
HTML_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
RESEND_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
65
70
|
to: _containers.RepeatedScalarFieldContainer[str]
|
|
66
71
|
preview: str
|
|
67
72
|
subject: str
|
|
@@ -72,7 +77,8 @@ class BatchEmailRequest(_message.Message):
|
|
|
72
77
|
service: str
|
|
73
78
|
template: str
|
|
74
79
|
html: str
|
|
75
|
-
|
|
80
|
+
resend_key: str
|
|
81
|
+
def __init__(self, to: _Optional[_Iterable[str]] = ..., preview: _Optional[str] = ..., subject: _Optional[str] = ..., paragraphs: _Optional[_Iterable[str]] = ..., button: _Optional[_Union[EmailButton, _Mapping]] = ..., reply_to: _Optional[str] = ..., image: _Optional[_Union[EmailImage, _Mapping]] = ..., service: _Optional[str] = ..., template: _Optional[str] = ..., html: _Optional[str] = ..., resend_key: _Optional[str] = ..., **kwargs) -> None: ...
|
|
76
82
|
|
|
77
83
|
class EmailResponse(_message.Message):
|
|
78
84
|
__slots__ = ("success", "message_id", "error")
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: queue/workflow/v1/workflow.proto
|
|
5
|
+
# Protobuf Python Version: 7.34.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
34,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'queue/workflow/v1/workflow.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n queue/workflow/v1/workflow.proto\x12\x11queue.workflow.v1\"A\n\x13WorkflowStepRequest\x12*\n\x11step_execution_id\x18\x01 \x01(\tR\x0fstepExecutionId\"r\n\x14WorkflowStepResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12*\n\x11step_execution_id\x18\x02 \x01(\tR\x0fstepExecutionId\x12\x14\n\x05\x65rror\x18\x03 \x01(\tR\x05\x65rror\"\x8d\x02\n\x14WorkflowEventRequest\x12\x1d\n\nevent_type\x18\x01 \x01(\tR\teventType\x12\x1b\n\tperson_id\x18\x02 \x01(\tR\x08personId\x12!\n\x0cworkspace_id\x18\x03 \x01(\tR\x0bworkspaceId\x12W\n\nproperties\x18\x04 \x03(\x0b\x32\x37.queue.workflow.v1.WorkflowEventRequest.PropertiesEntryR\nproperties\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"t\n\x15WorkflowEventResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12+\n\x11workflows_resumed\x18\x02 \x01(\x05R\x10workflowsResumed\x12\x14\n\x05\x65rror\x18\x03 \x01(\tR\x05\x65rrorBRZPgithub.com/StudyFetch/sf-queue/packages/go/proto-go/queue/workflow/v1;workflowv1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'queue.workflow.v1.workflow_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'ZPgithub.com/StudyFetch/sf-queue/packages/go/proto-go/queue/workflow/v1;workflowv1'
|
|
35
|
+
_globals['_WORKFLOWEVENTREQUEST_PROPERTIESENTRY']._loaded_options = None
|
|
36
|
+
_globals['_WORKFLOWEVENTREQUEST_PROPERTIESENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_WORKFLOWSTEPREQUEST']._serialized_start=55
|
|
38
|
+
_globals['_WORKFLOWSTEPREQUEST']._serialized_end=120
|
|
39
|
+
_globals['_WORKFLOWSTEPRESPONSE']._serialized_start=122
|
|
40
|
+
_globals['_WORKFLOWSTEPRESPONSE']._serialized_end=236
|
|
41
|
+
_globals['_WORKFLOWEVENTREQUEST']._serialized_start=239
|
|
42
|
+
_globals['_WORKFLOWEVENTREQUEST']._serialized_end=508
|
|
43
|
+
_globals['_WORKFLOWEVENTREQUEST_PROPERTIESENTRY']._serialized_start=447
|
|
44
|
+
_globals['_WORKFLOWEVENTREQUEST_PROPERTIESENTRY']._serialized_end=508
|
|
45
|
+
_globals['_WORKFLOWEVENTRESPONSE']._serialized_start=510
|
|
46
|
+
_globals['_WORKFLOWEVENTRESPONSE']._serialized_end=626
|
|
47
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class WorkflowStepRequest(_message.Message):
|
|
10
|
+
__slots__ = ("step_execution_id",)
|
|
11
|
+
STEP_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
step_execution_id: str
|
|
13
|
+
def __init__(self, step_execution_id: _Optional[str] = ...) -> None: ...
|
|
14
|
+
|
|
15
|
+
class WorkflowStepResponse(_message.Message):
|
|
16
|
+
__slots__ = ("success", "step_execution_id", "error")
|
|
17
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
STEP_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
success: bool
|
|
21
|
+
step_execution_id: str
|
|
22
|
+
error: str
|
|
23
|
+
def __init__(self, success: _Optional[bool] = ..., step_execution_id: _Optional[str] = ..., error: _Optional[str] = ...) -> None: ...
|
|
24
|
+
|
|
25
|
+
class WorkflowEventRequest(_message.Message):
|
|
26
|
+
__slots__ = ("event_type", "person_id", "workspace_id", "properties")
|
|
27
|
+
class PropertiesEntry(_message.Message):
|
|
28
|
+
__slots__ = ("key", "value")
|
|
29
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
key: str
|
|
32
|
+
value: str
|
|
33
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
34
|
+
EVENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
PERSON_ID_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
WORKSPACE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
event_type: str
|
|
39
|
+
person_id: str
|
|
40
|
+
workspace_id: str
|
|
41
|
+
properties: _containers.ScalarMap[str, str]
|
|
42
|
+
def __init__(self, event_type: _Optional[str] = ..., person_id: _Optional[str] = ..., workspace_id: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
43
|
+
|
|
44
|
+
class WorkflowEventResponse(_message.Message):
|
|
45
|
+
__slots__ = ("success", "workflows_resumed", "error")
|
|
46
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
WORKFLOWS_RESUMED_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
success: bool
|
|
50
|
+
workflows_resumed: int
|
|
51
|
+
error: str
|
|
52
|
+
def __init__(self, success: _Optional[bool] = ..., workflows_resumed: _Optional[int] = ..., error: _Optional[str] = ...) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|