@pushwoosh/rpc-v2-http-api-data 0.2.299 → 0.2.300

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/data.js CHANGED
@@ -20831,6 +20831,144 @@ export const data = {
20831
20831
  }
20832
20832
  }
20833
20833
  },
20834
+ "pushwoosh.rpc_v2.live_activity_schemas.liveActivitySchemasService": {
20835
+ "type": "S",
20836
+ "key": "liveActivitySchemas",
20837
+ "methods": {
20838
+ "List": {
20839
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasRequest",
20840
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasResponse",
20841
+ "method": "get",
20842
+ "path": "/api/live_activity_schemas"
20843
+ },
20844
+ "Get": {
20845
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaRequest",
20846
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaResponse",
20847
+ "method": "get",
20848
+ "path": "/api/live_activity_schemas/{attributes_type}/{version}"
20849
+ },
20850
+ "Create": {
20851
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaRequest",
20852
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaResponse",
20853
+ "method": "post",
20854
+ "path": "/api/live_activity_schemas"
20855
+ },
20856
+ "Delete": {
20857
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaRequest",
20858
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaResponse",
20859
+ "method": "delete",
20860
+ "path": "/api/live_activity_schemas/{attributes_type}/{version}"
20861
+ }
20862
+ }
20863
+ },
20864
+ "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema": {
20865
+ "type": "I",
20866
+ "fields": {
20867
+ "application": {
20868
+ "type": "string"
20869
+ },
20870
+ "attributesType": {
20871
+ "type": "string"
20872
+ },
20873
+ "version": {
20874
+ "type": "number"
20875
+ },
20876
+ "jsonSchema": {
20877
+ "type": "string"
20878
+ },
20879
+ "created": {
20880
+ "type": "Date"
20881
+ },
20882
+ "updated": {
20883
+ "type": "Date"
20884
+ }
20885
+ }
20886
+ },
20887
+ "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasRequest": {
20888
+ "type": "I",
20889
+ "fields": {
20890
+ "application": {
20891
+ "type": "string"
20892
+ },
20893
+ "attributesType": {
20894
+ "type": "string"
20895
+ }
20896
+ }
20897
+ },
20898
+ "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasResponse": {
20899
+ "type": "I",
20900
+ "fields": {
20901
+ "schemas": {
20902
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema",
20903
+ "array": true
20904
+ }
20905
+ }
20906
+ },
20907
+ "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaRequest": {
20908
+ "type": "I",
20909
+ "fields": {
20910
+ "application": {
20911
+ "type": "string"
20912
+ },
20913
+ "attributesType": {
20914
+ "type": "string"
20915
+ },
20916
+ "version": {
20917
+ "type": "number"
20918
+ }
20919
+ }
20920
+ },
20921
+ "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaResponse": {
20922
+ "type": "I",
20923
+ "fields": {
20924
+ "schema": {
20925
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema"
20926
+ }
20927
+ }
20928
+ },
20929
+ "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaRequest": {
20930
+ "type": "I",
20931
+ "fields": {
20932
+ "application": {
20933
+ "type": "string"
20934
+ },
20935
+ "attributesType": {
20936
+ "type": "string"
20937
+ },
20938
+ "jsonSchema": {
20939
+ "type": "string"
20940
+ },
20941
+ "version": {
20942
+ "type": "number"
20943
+ }
20944
+ }
20945
+ },
20946
+ "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaResponse": {
20947
+ "type": "I",
20948
+ "fields": {
20949
+ "schema": {
20950
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema"
20951
+ }
20952
+ }
20953
+ },
20954
+ "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaRequest": {
20955
+ "type": "I",
20956
+ "fields": {
20957
+ "application": {
20958
+ "type": "string"
20959
+ },
20960
+ "attributesType": {
20961
+ "type": "string"
20962
+ },
20963
+ "version": {
20964
+ "type": "number"
20965
+ }
20966
+ }
20967
+ },
20968
+ "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaResponse": {
20969
+ "type": "I",
20970
+ "fields": {}
20971
+ },
20834
20972
  "pushwoosh.llm.v1.LlmPolicy": {
20835
20973
  "type": "E",
20836
20974
  "values": [
package/index.d.ts CHANGED
@@ -46,6 +46,7 @@ import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlert
46
46
  import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
47
47
  import { KakaoPresetsService as pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService } from './kakao_presets';
48
48
  import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
49
+ import { liveActivitySchemasService as pushwoosh_rpc_v2_live_activity_schemas_liveActivitySchemasService } from './live_activity_schemas';
49
50
  import { MediaFilesService as pushwoosh_rpc_v2_media_files_MediaFilesService } from './media_files';
50
51
  import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
51
52
  import { NewsService as pushwoosh_rpc_v2_news_NewsService } from './news';
@@ -121,6 +122,7 @@ export type API = {
121
122
  iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
122
123
  kakaoPresets: pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService;
123
124
  linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
125
+ liveActivitySchemas: pushwoosh_rpc_v2_live_activity_schemas_liveActivitySchemasService;
124
126
  mediaFiles: pushwoosh_rpc_v2_media_files_MediaFilesService;
125
127
  messages: pushwoosh_rpc_v2_messages_MessagesService;
126
128
  news: pushwoosh_rpc_v2_news_NewsService;
@@ -0,0 +1,69 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type liveActivitySchemasService_List = RpcMethod<ListLiveActivitySchemasRequest, ListLiveActivitySchemasResponse>;
3
+ export type liveActivitySchemasService_Get = RpcMethod<GetLiveActivitySchemaRequest, GetLiveActivitySchemaResponse>;
4
+ export type liveActivitySchemasService_Create = RpcMethod<CreateLiveActivitySchemaRequest, CreateLiveActivitySchemaResponse>;
5
+ export type liveActivitySchemasService_Delete = RpcMethod<DeleteLiveActivitySchemaRequest, DeleteLiveActivitySchemaResponse>;
6
+ export interface liveActivitySchemasService {
7
+ /** Lists the Live Activity content-state schemas of one application: every attributes type with its versions, newest first. Use to find which widget types an application declares and what their fields are. */
8
+ List: liveActivitySchemasService_List;
9
+ /** Returns one Live Activity schema version: the JSON Schema describing the content-state fields a journey point renders its form from. */
10
+ Get: liveActivitySchemasService_Get;
11
+ /** Publishes a new version of a Live Activity schema. A published version is immutable, so a widget change is always a new version; omit version to get the next one. */
12
+ Create: liveActivitySchemasService_Create;
13
+ /** Permanently deletes one Live Activity schema version. Journey points built against it keep their saved fields but lose the form hints. */
14
+ Delete: liveActivitySchemasService_Delete;
15
+ }
16
+ export type LiveActivitySchema = {
17
+ /** Application code (format XXXXX-XXXXX) the schema belongs to. */
18
+ application: string;
19
+ /** Name of the ActivityAttributes type in the customer app, e.g. "FlightAttributes". */
20
+ attributesType: string;
21
+ /** Version of this schema; versions are immutable and grow by one. */
22
+ version: number;
23
+ /** JSON Schema describing the content-state fields. */
24
+ jsonSchema: string;
25
+ created: Date;
26
+ updated: Date;
27
+ };
28
+ export type ListLiveActivitySchemasRequest = {
29
+ /** Application code (format XXXXX-XXXXX) whose schemas to list; required. */
30
+ application?: string;
31
+ /** Restrict the list to one ActivityAttributes type. */
32
+ attributesType?: string;
33
+ };
34
+ export type ListLiveActivitySchemasResponse = {
35
+ schemas: LiveActivitySchema[];
36
+ };
37
+ export type GetLiveActivitySchemaRequest = {
38
+ /** Application code (format XXXXX-XXXXX); required. */
39
+ application?: string;
40
+ /** Name of the ActivityAttributes type; required. */
41
+ attributesType?: string;
42
+ /** Schema version; required. */
43
+ version?: number;
44
+ };
45
+ export type GetLiveActivitySchemaResponse = {
46
+ schema: LiveActivitySchema;
47
+ };
48
+ export type CreateLiveActivitySchemaRequest = {
49
+ /** Application code (format XXXXX-XXXXX); required. */
50
+ application?: string;
51
+ /** Name of the ActivityAttributes type declared in the app; required. */
52
+ attributesType?: string;
53
+ /** JSON Schema of the content-state fields; required, must parse as JSON. */
54
+ jsonSchema?: string;
55
+ /** Version to publish; the next free one when omitted. */
56
+ version?: number;
57
+ };
58
+ export type CreateLiveActivitySchemaResponse = {
59
+ schema: LiveActivitySchema;
60
+ };
61
+ export type DeleteLiveActivitySchemaRequest = {
62
+ /** Application code (format XXXXX-XXXXX); required. */
63
+ application?: string;
64
+ /** Name of the ActivityAttributes type; required. */
65
+ attributesType?: string;
66
+ /** Schema version to delete; required. */
67
+ version?: number;
68
+ };
69
+ export type DeleteLiveActivitySchemaResponse = {};
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.299",
3
+ "version": "0.2.300",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",