@pushwoosh/rpc-v2-http-api-data 0.2.381 → 0.2.383
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/canva.d.ts +50 -0
- package/data.js +178 -0
- package/inapp_messages.d.ts +30 -0
- package/package.json +1 -1
package/canva.d.ts
CHANGED
|
@@ -1,13 +1,63 @@
|
|
|
1
1
|
import { RpcMethod } from './commonTypes';
|
|
2
|
+
import { MediaFile as pushwoosh_rpc_v2_media_files_MediaFile } from './media_files';
|
|
3
|
+
export type CanvaService_GetStatus = RpcMethod<GetCanvaStatusRequest, GetCanvaStatusResponse>;
|
|
2
4
|
export type CanvaService_ListDesigns = RpcMethod<ListCanvaDesignsRequest, ListCanvaDesignsResponse>;
|
|
5
|
+
export type CanvaService_StartImport = RpcMethod<StartCanvaImportRequest, StartCanvaImportResponse>;
|
|
6
|
+
export type CanvaService_GetImport = RpcMethod<GetCanvaImportRequest, GetCanvaImportResponse>;
|
|
3
7
|
/**
|
|
4
8
|
* CanvaService reads the calling user's own Canva designs for the Media Library import. The user
|
|
5
9
|
* connects Canva once through the OAuth integration endpoints with provider "canva".
|
|
6
10
|
*/
|
|
7
11
|
export interface CanvaService {
|
|
12
|
+
/** Tells whether Canva import is available to the calling user and whether that user has connected Canva, without calling Canva. Use to decide whether to show the import entry point and the connect step. */
|
|
13
|
+
GetStatus: CanvaService_GetStatus;
|
|
8
14
|
/** Lists the calling user's Canva designs, newest edited first, optionally filtered by a title search; pass continuation from the previous page to read the next. Needs that user's own Canva connection and a signed-in user: API tokens are refused, because a Canva grant opens one person's designs. */
|
|
9
15
|
ListDesigns: CanvaService_ListDesigns;
|
|
16
|
+
/** Starts importing pages of the user's Canva design into an application's Media Library as images. Spends one Canva export of the integration's shared daily quota; poll get_canva_import with the returned id until it is done or failed. */
|
|
17
|
+
StartImport: CanvaService_StartImport;
|
|
18
|
+
/** Advances and reports a Canva import: waits for the export, then stores the pages in the Media Library a few per call. Poll until state is done (files hold the stored images) or failed (error says why). */
|
|
19
|
+
GetImport: CanvaService_GetImport;
|
|
10
20
|
}
|
|
21
|
+
export type CanvaImportFormat = 'CANVA_IMPORT_FORMAT_UNSPECIFIED' | 'CANVA_IMPORT_FORMAT_PNG' | 'CANVA_IMPORT_FORMAT_JPG';
|
|
22
|
+
export type CanvaImportState = 'CANVA_IMPORT_STATE_UNSPECIFIED'
|
|
23
|
+
/** Canva is rendering the export. */
|
|
24
|
+
| 'CANVA_IMPORT_STATE_EXPORTING'
|
|
25
|
+
/** The pages are being stored in the Media Library. */
|
|
26
|
+
| 'CANVA_IMPORT_STATE_UPLOADING' | 'CANVA_IMPORT_STATE_DONE' | 'CANVA_IMPORT_STATE_FAILED';
|
|
27
|
+
export type StartCanvaImportRequest = {
|
|
28
|
+
/** Application code (format XXXXX-XXXXX) whose Media Library receives the images. */
|
|
29
|
+
application?: string;
|
|
30
|
+
designId?: string;
|
|
31
|
+
/** 1-based page numbers, at most 10; empty imports page 1. */
|
|
32
|
+
pages?: number[];
|
|
33
|
+
/** PNG when unset. */
|
|
34
|
+
format?: CanvaImportFormat;
|
|
35
|
+
};
|
|
36
|
+
export type StartCanvaImportResponse = {
|
|
37
|
+
importId: string;
|
|
38
|
+
};
|
|
39
|
+
export type GetCanvaImportRequest = {
|
|
40
|
+
importId?: string;
|
|
41
|
+
};
|
|
42
|
+
export type GetCanvaImportResponse = {
|
|
43
|
+
state: CanvaImportState;
|
|
44
|
+
pagesTotal: number;
|
|
45
|
+
pagesDone: number;
|
|
46
|
+
/** Stored images in page order, filled as pages land. */
|
|
47
|
+
files: pushwoosh_rpc_v2_media_files_MediaFile[];
|
|
48
|
+
/** Why the import failed, readable by the user; empty otherwise. */
|
|
49
|
+
error: string;
|
|
50
|
+
};
|
|
51
|
+
export type GetCanvaStatusRequest = {};
|
|
52
|
+
export type GetCanvaStatusResponse = {
|
|
53
|
+
/** False when Canva is off in this region, the account is not in the beta, or the caller is not a signed-in user. */
|
|
54
|
+
available: boolean;
|
|
55
|
+
connected: boolean;
|
|
56
|
+
/** The Canva display name of the connection. */
|
|
57
|
+
identity: string;
|
|
58
|
+
/** False when Canva rejected the stored grant: connect again. */
|
|
59
|
+
tokenValid: boolean;
|
|
60
|
+
};
|
|
11
61
|
export type ListCanvaDesignsRequest = {
|
|
12
62
|
/** Title search; empty lists every design the user can access. */
|
|
13
63
|
query?: string;
|
package/data.js
CHANGED
|
@@ -8750,11 +8750,123 @@ export const data = {
|
|
|
8750
8750
|
"type": "S",
|
|
8751
8751
|
"key": "canva",
|
|
8752
8752
|
"methods": {
|
|
8753
|
+
"GetStatus": {
|
|
8754
|
+
"request": "pushwoosh.rpc_v2.canva.GetCanvaStatusRequest",
|
|
8755
|
+
"response": "pushwoosh.rpc_v2.canva.GetCanvaStatusResponse",
|
|
8756
|
+
"method": "get",
|
|
8757
|
+
"path": "/api/canva/status"
|
|
8758
|
+
},
|
|
8753
8759
|
"ListDesigns": {
|
|
8754
8760
|
"request": "pushwoosh.rpc_v2.canva.ListCanvaDesignsRequest",
|
|
8755
8761
|
"response": "pushwoosh.rpc_v2.canva.ListCanvaDesignsResponse",
|
|
8756
8762
|
"method": "get",
|
|
8757
8763
|
"path": "/api/canva/designs"
|
|
8764
|
+
},
|
|
8765
|
+
"StartImport": {
|
|
8766
|
+
"request": "pushwoosh.rpc_v2.canva.StartCanvaImportRequest",
|
|
8767
|
+
"response": "pushwoosh.rpc_v2.canva.StartCanvaImportResponse",
|
|
8768
|
+
"method": "post",
|
|
8769
|
+
"path": "/api/canva/imports"
|
|
8770
|
+
},
|
|
8771
|
+
"GetImport": {
|
|
8772
|
+
"request": "pushwoosh.rpc_v2.canva.GetCanvaImportRequest",
|
|
8773
|
+
"response": "pushwoosh.rpc_v2.canva.GetCanvaImportResponse",
|
|
8774
|
+
"method": "get",
|
|
8775
|
+
"path": "/api/canva/imports/{import_id}"
|
|
8776
|
+
}
|
|
8777
|
+
}
|
|
8778
|
+
},
|
|
8779
|
+
"pushwoosh.rpc_v2.canva.CanvaImportFormat": {
|
|
8780
|
+
"type": "E",
|
|
8781
|
+
"values": [
|
|
8782
|
+
"CANVA_IMPORT_FORMAT_UNSPECIFIED",
|
|
8783
|
+
"CANVA_IMPORT_FORMAT_PNG",
|
|
8784
|
+
"CANVA_IMPORT_FORMAT_JPG"
|
|
8785
|
+
]
|
|
8786
|
+
},
|
|
8787
|
+
"pushwoosh.rpc_v2.canva.CanvaImportState": {
|
|
8788
|
+
"type": "E",
|
|
8789
|
+
"values": [
|
|
8790
|
+
"CANVA_IMPORT_STATE_UNSPECIFIED",
|
|
8791
|
+
"CANVA_IMPORT_STATE_EXPORTING",
|
|
8792
|
+
"CANVA_IMPORT_STATE_UPLOADING",
|
|
8793
|
+
"CANVA_IMPORT_STATE_DONE",
|
|
8794
|
+
"CANVA_IMPORT_STATE_FAILED"
|
|
8795
|
+
]
|
|
8796
|
+
},
|
|
8797
|
+
"pushwoosh.rpc_v2.canva.StartCanvaImportRequest": {
|
|
8798
|
+
"type": "I",
|
|
8799
|
+
"fields": {
|
|
8800
|
+
"application": {
|
|
8801
|
+
"type": "string"
|
|
8802
|
+
},
|
|
8803
|
+
"designId": {
|
|
8804
|
+
"type": "string"
|
|
8805
|
+
},
|
|
8806
|
+
"pages": {
|
|
8807
|
+
"type": "number",
|
|
8808
|
+
"array": true
|
|
8809
|
+
},
|
|
8810
|
+
"format": {
|
|
8811
|
+
"type": "pushwoosh.rpc_v2.canva.CanvaImportFormat"
|
|
8812
|
+
}
|
|
8813
|
+
}
|
|
8814
|
+
},
|
|
8815
|
+
"pushwoosh.rpc_v2.canva.StartCanvaImportResponse": {
|
|
8816
|
+
"type": "I",
|
|
8817
|
+
"fields": {
|
|
8818
|
+
"importId": {
|
|
8819
|
+
"type": "string"
|
|
8820
|
+
}
|
|
8821
|
+
}
|
|
8822
|
+
},
|
|
8823
|
+
"pushwoosh.rpc_v2.canva.GetCanvaImportRequest": {
|
|
8824
|
+
"type": "I",
|
|
8825
|
+
"fields": {
|
|
8826
|
+
"importId": {
|
|
8827
|
+
"type": "string"
|
|
8828
|
+
}
|
|
8829
|
+
}
|
|
8830
|
+
},
|
|
8831
|
+
"pushwoosh.rpc_v2.canva.GetCanvaImportResponse": {
|
|
8832
|
+
"type": "I",
|
|
8833
|
+
"fields": {
|
|
8834
|
+
"state": {
|
|
8835
|
+
"type": "pushwoosh.rpc_v2.canva.CanvaImportState"
|
|
8836
|
+
},
|
|
8837
|
+
"pagesTotal": {
|
|
8838
|
+
"type": "number"
|
|
8839
|
+
},
|
|
8840
|
+
"pagesDone": {
|
|
8841
|
+
"type": "number"
|
|
8842
|
+
},
|
|
8843
|
+
"files": {
|
|
8844
|
+
"type": "pushwoosh.rpc_v2.media_files.MediaFile",
|
|
8845
|
+
"array": true
|
|
8846
|
+
},
|
|
8847
|
+
"error": {
|
|
8848
|
+
"type": "string"
|
|
8849
|
+
}
|
|
8850
|
+
}
|
|
8851
|
+
},
|
|
8852
|
+
"pushwoosh.rpc_v2.canva.GetCanvaStatusRequest": {
|
|
8853
|
+
"type": "I",
|
|
8854
|
+
"fields": {}
|
|
8855
|
+
},
|
|
8856
|
+
"pushwoosh.rpc_v2.canva.GetCanvaStatusResponse": {
|
|
8857
|
+
"type": "I",
|
|
8858
|
+
"fields": {
|
|
8859
|
+
"available": {
|
|
8860
|
+
"type": "boolean"
|
|
8861
|
+
},
|
|
8862
|
+
"connected": {
|
|
8863
|
+
"type": "boolean"
|
|
8864
|
+
},
|
|
8865
|
+
"identity": {
|
|
8866
|
+
"type": "string"
|
|
8867
|
+
},
|
|
8868
|
+
"tokenValid": {
|
|
8869
|
+
"type": "boolean"
|
|
8758
8870
|
}
|
|
8759
8871
|
}
|
|
8760
8872
|
},
|
|
@@ -19846,6 +19958,24 @@ export const data = {
|
|
|
19846
19958
|
"response": "pushwoosh.rpc_v2.inapp_messages.PublishInappResponse",
|
|
19847
19959
|
"method": "post",
|
|
19848
19960
|
"path": "/api/inapp_messages/{code}:publish"
|
|
19961
|
+
},
|
|
19962
|
+
"StopInappMessages": {
|
|
19963
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesRequest",
|
|
19964
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesResponse",
|
|
19965
|
+
"method": "post",
|
|
19966
|
+
"path": "/api/inapp_messages/stop"
|
|
19967
|
+
},
|
|
19968
|
+
"PublishInappMessages": {
|
|
19969
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesRequest",
|
|
19970
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesResponse",
|
|
19971
|
+
"method": "post",
|
|
19972
|
+
"path": "/api/inapp_messages/publish"
|
|
19973
|
+
},
|
|
19974
|
+
"DeleteInappMessages": {
|
|
19975
|
+
"request": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesRequest",
|
|
19976
|
+
"response": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesResponse",
|
|
19977
|
+
"method": "post",
|
|
19978
|
+
"path": "/api/inapp_messages/delete"
|
|
19849
19979
|
}
|
|
19850
19980
|
}
|
|
19851
19981
|
},
|
|
@@ -20243,6 +20373,54 @@ export const data = {
|
|
|
20243
20373
|
}
|
|
20244
20374
|
}
|
|
20245
20375
|
},
|
|
20376
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappMessagesRequest": {
|
|
20377
|
+
"type": "I",
|
|
20378
|
+
"fields": {
|
|
20379
|
+
"application": {
|
|
20380
|
+
"type": "string"
|
|
20381
|
+
},
|
|
20382
|
+
"codes": {
|
|
20383
|
+
"type": "string",
|
|
20384
|
+
"array": true
|
|
20385
|
+
}
|
|
20386
|
+
}
|
|
20387
|
+
},
|
|
20388
|
+
"pushwoosh.rpc_v2.inapp_messages.StopInappMessagesResponse": {
|
|
20389
|
+
"type": "I",
|
|
20390
|
+
"fields": {}
|
|
20391
|
+
},
|
|
20392
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesRequest": {
|
|
20393
|
+
"type": "I",
|
|
20394
|
+
"fields": {
|
|
20395
|
+
"application": {
|
|
20396
|
+
"type": "string"
|
|
20397
|
+
},
|
|
20398
|
+
"codes": {
|
|
20399
|
+
"type": "string",
|
|
20400
|
+
"array": true
|
|
20401
|
+
}
|
|
20402
|
+
}
|
|
20403
|
+
},
|
|
20404
|
+
"pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesResponse": {
|
|
20405
|
+
"type": "I",
|
|
20406
|
+
"fields": {}
|
|
20407
|
+
},
|
|
20408
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesRequest": {
|
|
20409
|
+
"type": "I",
|
|
20410
|
+
"fields": {
|
|
20411
|
+
"application": {
|
|
20412
|
+
"type": "string"
|
|
20413
|
+
},
|
|
20414
|
+
"codes": {
|
|
20415
|
+
"type": "string",
|
|
20416
|
+
"array": true
|
|
20417
|
+
}
|
|
20418
|
+
}
|
|
20419
|
+
},
|
|
20420
|
+
"pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesResponse": {
|
|
20421
|
+
"type": "I",
|
|
20422
|
+
"fields": {}
|
|
20423
|
+
},
|
|
20246
20424
|
"pushwoosh.rpc_v2.inbound_webhooks.InboundWebhooksService": {
|
|
20247
20425
|
"type": "S",
|
|
20248
20426
|
"key": "inboundWebhooks",
|
package/inapp_messages.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export type InAppMessagesService_Create = RpcMethod<CreateInappRequest, CreateIn
|
|
|
7
7
|
export type InAppMessagesService_Update = RpcMethod<UpdateInappRequest, UpdateInappResponse>;
|
|
8
8
|
export type InAppMessagesService_Stop = RpcMethod<StopInappRequest, StopInappResponse>;
|
|
9
9
|
export type InAppMessagesService_Publish = RpcMethod<PublishInappRequest, PublishInappResponse>;
|
|
10
|
+
export type InAppMessagesService_StopInappMessages = RpcMethod<StopInappMessagesRequest, StopInappMessagesResponse>;
|
|
11
|
+
export type InAppMessagesService_PublishInappMessages = RpcMethod<PublishInappMessagesRequest, PublishInappMessagesResponse>;
|
|
12
|
+
export type InAppMessagesService_DeleteInappMessages = RpcMethod<DeleteInappMessagesRequest, DeleteInappMessagesResponse>;
|
|
10
13
|
export interface InAppMessagesService {
|
|
11
14
|
/** Lists in-app messages for an application (format XXXXX-XXXXX), newest first, with paging, name/code search and an optional status filter. Use to browse in-app messages or find an in-app message code before fetching, editing or publishing one. */
|
|
12
15
|
List: InAppMessagesService_List;
|
|
@@ -22,6 +25,12 @@ export interface InAppMessagesService {
|
|
|
22
25
|
Stop: InAppMessagesService_Stop;
|
|
23
26
|
/** Activates a draft in-app message by code after validating it has a name, a trigger filter expression and rich media. Use to publish a prepared draft; the reverse is disable_inapp_message. */
|
|
24
27
|
Publish: InAppMessagesService_Publish;
|
|
28
|
+
/** Stops several active in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes. All-or-nothing: if any code is not found or is not active (scheduled ones included), nothing changes. Use disable_inapp_message for a single one. */
|
|
29
|
+
StopInappMessages: InAppMessagesService_StopInappMessages;
|
|
30
|
+
/** Resumes several stopped in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes, with the same checks as enable_inapp_message. All-or-nothing: if any code is not found, not stopped or fails the checks, nothing changes. */
|
|
31
|
+
PublishInappMessages: InAppMessagesService_PublishInappMessages;
|
|
32
|
+
/** Permanently deletes several in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes. Active and scheduled ones can't be deleted. All-or-nothing: if any code is not found or is active or scheduled, nothing is deleted. */
|
|
33
|
+
DeleteInappMessages: InAppMessagesService_DeleteInappMessages;
|
|
25
34
|
}
|
|
26
35
|
export type ListInappMessagesRequest_OrderBy = 'CREATED' | 'NAME' | 'UPDATED';
|
|
27
36
|
export type ListInappMessagesRequest_OrderDirection = 'DESC' | 'ASC';
|
|
@@ -163,3 +172,24 @@ export type PublishInappRequest = {
|
|
|
163
172
|
export type PublishInappResponse = {
|
|
164
173
|
code: string;
|
|
165
174
|
};
|
|
175
|
+
export type StopInappMessagesRequest = {
|
|
176
|
+
/** Application code (XXXXX-XXXXX) the in-app messages belong to. */
|
|
177
|
+
application?: string;
|
|
178
|
+
/** In-app message codes to stop. */
|
|
179
|
+
codes?: string[];
|
|
180
|
+
};
|
|
181
|
+
export type StopInappMessagesResponse = {};
|
|
182
|
+
export type PublishInappMessagesRequest = {
|
|
183
|
+
/** Application code (XXXXX-XXXXX) the in-app messages belong to. */
|
|
184
|
+
application?: string;
|
|
185
|
+
/** In-app message codes to resume. */
|
|
186
|
+
codes?: string[];
|
|
187
|
+
};
|
|
188
|
+
export type PublishInappMessagesResponse = {};
|
|
189
|
+
export type DeleteInappMessagesRequest = {
|
|
190
|
+
/** Application code (XXXXX-XXXXX) the in-app messages belong to. */
|
|
191
|
+
application?: string;
|
|
192
|
+
/** In-app message codes to delete. */
|
|
193
|
+
codes?: string[];
|
|
194
|
+
};
|
|
195
|
+
export type DeleteInappMessagesResponse = {};
|