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

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
@@ -10316,6 +10316,230 @@ export const data = {
10316
10316
  }
10317
10317
  }
10318
10318
  },
10319
+ "pushwoosh.rpc_v2.data_erasure.DataErasureService": {
10320
+ "type": "S",
10321
+ "key": "dataErasure",
10322
+ "methods": {
10323
+ "CreateTask": {
10324
+ "request": "pushwoosh.rpc_v2.data_erasure.CreateDataErasureTaskRequest",
10325
+ "response": "pushwoosh.rpc_v2.data_erasure.CreateDataErasureTaskResponse",
10326
+ "method": "post",
10327
+ "path": "/api/data_erasure/tasks"
10328
+ },
10329
+ "GetTask": {
10330
+ "request": "pushwoosh.rpc_v2.data_erasure.GetDataErasureTaskRequest",
10331
+ "response": "pushwoosh.rpc_v2.data_erasure.GetDataErasureTaskResponse",
10332
+ "method": "get",
10333
+ "path": "/api/data_erasure/tasks/{task_id}"
10334
+ },
10335
+ "ListTasks": {
10336
+ "request": "pushwoosh.rpc_v2.data_erasure.ListDataErasureTasksRequest",
10337
+ "response": "pushwoosh.rpc_v2.data_erasure.ListDataErasureTasksResponse",
10338
+ "method": "get",
10339
+ "path": "/api/data_erasure/tasks"
10340
+ },
10341
+ "ListTaskRows": {
10342
+ "request": "pushwoosh.rpc_v2.data_erasure.ListDataErasureTaskRowsRequest",
10343
+ "response": "pushwoosh.rpc_v2.data_erasure.ListDataErasureTaskRowsResponse",
10344
+ "method": "get",
10345
+ "path": "/api/data_erasure/tasks/{task_id}/rows"
10346
+ }
10347
+ }
10348
+ },
10349
+ "pushwoosh.rpc_v2.data_erasure.SubjectIdentifierType": {
10350
+ "type": "E",
10351
+ "values": [
10352
+ "SUBJECT_IDENTIFIER_UNKNOWN",
10353
+ "SUBJECT_IDENTIFIER_USER_ID",
10354
+ "SUBJECT_IDENTIFIER_HWID",
10355
+ "SUBJECT_IDENTIFIER_EMAIL"
10356
+ ]
10357
+ },
10358
+ "pushwoosh.rpc_v2.data_erasure.ErasureTaskStatus": {
10359
+ "type": "E",
10360
+ "values": [
10361
+ "ERASURE_TASK_STATUS_PENDING",
10362
+ "ERASURE_TASK_STATUS_IN_PROGRESS",
10363
+ "ERASURE_TASK_STATUS_DONE",
10364
+ "ERASURE_TASK_STATUS_FAILED"
10365
+ ]
10366
+ },
10367
+ "pushwoosh.rpc_v2.data_erasure.ErasureRowResult": {
10368
+ "type": "E",
10369
+ "values": [
10370
+ "ERASURE_ROW_RESULT_UNKNOWN",
10371
+ "ERASURE_ROW_RESULT_DELETED",
10372
+ "ERASURE_ROW_RESULT_NOT_FOUND",
10373
+ "ERASURE_ROW_RESULT_SKIPPED",
10374
+ "ERASURE_ROW_RESULT_FAILED"
10375
+ ]
10376
+ },
10377
+ "pushwoosh.rpc_v2.data_erasure.CreateDataErasureTaskRequest": {
10378
+ "type": "I",
10379
+ "fields": {
10380
+ "identifierType": {
10381
+ "type": "pushwoosh.rpc_v2.data_erasure.SubjectIdentifierType"
10382
+ },
10383
+ "identifiers": {
10384
+ "type": "string",
10385
+ "array": true
10386
+ },
10387
+ "applicationCodes": {
10388
+ "type": "string",
10389
+ "array": true
10390
+ },
10391
+ "dryRun": {
10392
+ "type": "boolean"
10393
+ },
10394
+ "confirmationDryRunTaskId": {
10395
+ "type": "number"
10396
+ }
10397
+ }
10398
+ },
10399
+ "pushwoosh.rpc_v2.data_erasure.CreateDataErasureTaskResponse": {
10400
+ "type": "I",
10401
+ "fields": {
10402
+ "taskId": {
10403
+ "type": "number"
10404
+ },
10405
+ "confirmationRequired": {
10406
+ "type": "boolean"
10407
+ },
10408
+ "confirmationThreshold": {
10409
+ "type": "number"
10410
+ }
10411
+ }
10412
+ },
10413
+ "pushwoosh.rpc_v2.data_erasure.GetDataErasureTaskRequest": {
10414
+ "type": "I",
10415
+ "fields": {
10416
+ "taskId": {
10417
+ "type": "number"
10418
+ }
10419
+ }
10420
+ },
10421
+ "pushwoosh.rpc_v2.data_erasure.GetDataErasureTaskResponse": {
10422
+ "type": "I",
10423
+ "fields": {
10424
+ "task": {
10425
+ "type": "pushwoosh.rpc_v2.data_erasure.DataErasureTask"
10426
+ }
10427
+ }
10428
+ },
10429
+ "pushwoosh.rpc_v2.data_erasure.ListDataErasureTasksRequest": {
10430
+ "type": "I",
10431
+ "fields": {
10432
+ "limit": {
10433
+ "type": "number"
10434
+ },
10435
+ "offset": {
10436
+ "type": "number"
10437
+ }
10438
+ }
10439
+ },
10440
+ "pushwoosh.rpc_v2.data_erasure.ListDataErasureTasksResponse": {
10441
+ "type": "I",
10442
+ "fields": {
10443
+ "tasks": {
10444
+ "type": "pushwoosh.rpc_v2.data_erasure.DataErasureTask",
10445
+ "array": true
10446
+ }
10447
+ }
10448
+ },
10449
+ "pushwoosh.rpc_v2.data_erasure.ListDataErasureTaskRowsRequest": {
10450
+ "type": "I",
10451
+ "fields": {
10452
+ "taskId": {
10453
+ "type": "number"
10454
+ },
10455
+ "limit": {
10456
+ "type": "number"
10457
+ },
10458
+ "offset": {
10459
+ "type": "number"
10460
+ }
10461
+ }
10462
+ },
10463
+ "pushwoosh.rpc_v2.data_erasure.ListDataErasureTaskRowsResponse": {
10464
+ "type": "I",
10465
+ "fields": {
10466
+ "rows": {
10467
+ "type": "pushwoosh.rpc_v2.data_erasure.DataErasureTaskRow",
10468
+ "array": true
10469
+ }
10470
+ }
10471
+ },
10472
+ "pushwoosh.rpc_v2.data_erasure.DataErasureTask": {
10473
+ "type": "I",
10474
+ "fields": {
10475
+ "taskId": {
10476
+ "type": "number"
10477
+ },
10478
+ "identifierType": {
10479
+ "type": "pushwoosh.rpc_v2.data_erasure.SubjectIdentifierType"
10480
+ },
10481
+ "applicationCodes": {
10482
+ "type": "string",
10483
+ "array": true
10484
+ },
10485
+ "dryRun": {
10486
+ "type": "boolean"
10487
+ },
10488
+ "status": {
10489
+ "type": "pushwoosh.rpc_v2.data_erasure.ErasureTaskStatus"
10490
+ },
10491
+ "totalCount": {
10492
+ "type": "number"
10493
+ },
10494
+ "deletedCount": {
10495
+ "type": "number"
10496
+ },
10497
+ "notFoundCount": {
10498
+ "type": "number"
10499
+ },
10500
+ "failedCount": {
10501
+ "type": "number"
10502
+ },
10503
+ "failReason": {
10504
+ "type": "string"
10505
+ },
10506
+ "initiatorUserId": {
10507
+ "type": "number"
10508
+ },
10509
+ "initiatorTokenId": {
10510
+ "type": "number"
10511
+ },
10512
+ "created": {
10513
+ "type": "Date"
10514
+ },
10515
+ "startedAt": {
10516
+ "type": "Date"
10517
+ },
10518
+ "finishedAt": {
10519
+ "type": "Date"
10520
+ }
10521
+ }
10522
+ },
10523
+ "pushwoosh.rpc_v2.data_erasure.DataErasureTaskRow": {
10524
+ "type": "I",
10525
+ "fields": {
10526
+ "identifierHash": {
10527
+ "type": "string"
10528
+ },
10529
+ "applicationCode": {
10530
+ "type": "string"
10531
+ },
10532
+ "result": {
10533
+ "type": "pushwoosh.rpc_v2.data_erasure.ErasureRowResult"
10534
+ },
10535
+ "detail": {
10536
+ "type": "string"
10537
+ },
10538
+ "created": {
10539
+ "type": "Date"
10540
+ }
10541
+ }
10542
+ },
10319
10543
  "pushwoosh.rpc_v2.deeplinks.DeeplinksService": {
10320
10544
  "type": "S",
10321
10545
  "key": "deeplinks",
@@ -20831,6 +21055,144 @@ export const data = {
20831
21055
  }
20832
21056
  }
20833
21057
  },
21058
+ "pushwoosh.rpc_v2.live_activity_schemas.liveActivitySchemasService": {
21059
+ "type": "S",
21060
+ "key": "liveActivitySchemas",
21061
+ "methods": {
21062
+ "List": {
21063
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasRequest",
21064
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasResponse",
21065
+ "method": "get",
21066
+ "path": "/api/live_activity_schemas"
21067
+ },
21068
+ "Get": {
21069
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaRequest",
21070
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaResponse",
21071
+ "method": "get",
21072
+ "path": "/api/live_activity_schemas/{attributes_type}/{version}"
21073
+ },
21074
+ "Create": {
21075
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaRequest",
21076
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaResponse",
21077
+ "method": "post",
21078
+ "path": "/api/live_activity_schemas"
21079
+ },
21080
+ "Delete": {
21081
+ "request": "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaRequest",
21082
+ "response": "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaResponse",
21083
+ "method": "delete",
21084
+ "path": "/api/live_activity_schemas/{attributes_type}/{version}"
21085
+ }
21086
+ }
21087
+ },
21088
+ "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema": {
21089
+ "type": "I",
21090
+ "fields": {
21091
+ "application": {
21092
+ "type": "string"
21093
+ },
21094
+ "attributesType": {
21095
+ "type": "string"
21096
+ },
21097
+ "version": {
21098
+ "type": "number"
21099
+ },
21100
+ "jsonSchema": {
21101
+ "type": "string"
21102
+ },
21103
+ "created": {
21104
+ "type": "Date"
21105
+ },
21106
+ "updated": {
21107
+ "type": "Date"
21108
+ }
21109
+ }
21110
+ },
21111
+ "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasRequest": {
21112
+ "type": "I",
21113
+ "fields": {
21114
+ "application": {
21115
+ "type": "string"
21116
+ },
21117
+ "attributesType": {
21118
+ "type": "string"
21119
+ }
21120
+ }
21121
+ },
21122
+ "pushwoosh.rpc_v2.live_activity_schemas.ListLiveActivitySchemasResponse": {
21123
+ "type": "I",
21124
+ "fields": {
21125
+ "schemas": {
21126
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema",
21127
+ "array": true
21128
+ }
21129
+ }
21130
+ },
21131
+ "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaRequest": {
21132
+ "type": "I",
21133
+ "fields": {
21134
+ "application": {
21135
+ "type": "string"
21136
+ },
21137
+ "attributesType": {
21138
+ "type": "string"
21139
+ },
21140
+ "version": {
21141
+ "type": "number"
21142
+ }
21143
+ }
21144
+ },
21145
+ "pushwoosh.rpc_v2.live_activity_schemas.GetLiveActivitySchemaResponse": {
21146
+ "type": "I",
21147
+ "fields": {
21148
+ "schema": {
21149
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema"
21150
+ }
21151
+ }
21152
+ },
21153
+ "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaRequest": {
21154
+ "type": "I",
21155
+ "fields": {
21156
+ "application": {
21157
+ "type": "string"
21158
+ },
21159
+ "attributesType": {
21160
+ "type": "string"
21161
+ },
21162
+ "jsonSchema": {
21163
+ "type": "string"
21164
+ },
21165
+ "version": {
21166
+ "type": "number"
21167
+ }
21168
+ }
21169
+ },
21170
+ "pushwoosh.rpc_v2.live_activity_schemas.CreateLiveActivitySchemaResponse": {
21171
+ "type": "I",
21172
+ "fields": {
21173
+ "schema": {
21174
+ "type": "pushwoosh.rpc_v2.live_activity_schemas.LiveActivitySchema"
21175
+ }
21176
+ }
21177
+ },
21178
+ "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaRequest": {
21179
+ "type": "I",
21180
+ "fields": {
21181
+ "application": {
21182
+ "type": "string"
21183
+ },
21184
+ "attributesType": {
21185
+ "type": "string"
21186
+ },
21187
+ "version": {
21188
+ "type": "number"
21189
+ }
21190
+ }
21191
+ },
21192
+ "pushwoosh.rpc_v2.live_activity_schemas.DeleteLiveActivitySchemaResponse": {
21193
+ "type": "I",
21194
+ "fields": {}
21195
+ },
20834
21196
  "pushwoosh.llm.v1.LlmPolicy": {
20835
21197
  "type": "E",
20836
21198
  "values": [
@@ -0,0 +1,94 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type DataErasureService_CreateTask = RpcMethod<CreateDataErasureTaskRequest, CreateDataErasureTaskResponse>;
3
+ export type DataErasureService_GetTask = RpcMethod<GetDataErasureTaskRequest, GetDataErasureTaskResponse>;
4
+ export type DataErasureService_ListTasks = RpcMethod<ListDataErasureTasksRequest, ListDataErasureTasksResponse>;
5
+ export type DataErasureService_ListTaskRows = RpcMethod<ListDataErasureTaskRowsRequest, ListDataErasureTaskRowsResponse>;
6
+ /**
7
+ * DataErasureService is the self-serve door to erasing the personal data of an end
8
+ * user (GDPR). The erase itself runs as a background task; these methods start it,
9
+ * follow it and show what it did.
10
+ */
11
+ export interface DataErasureService {
12
+ /** Starts erasing the personal data of the listed subjects in the listed applications. Identifiers are user ids, device hwids or email addresses. With dry_run the task only counts what would be erased. Erasure is irreversible: above the threshold the call is refused until it carries the id of a finished dry run of the same scope. */
13
+ CreateTask: DataErasureService_CreateTask;
14
+ /** Returns one data erasure task with its status and counters: how many subjects were erased, not found or failed. Use to follow a task started by create_data_erasure_task. */
15
+ GetTask: DataErasureService_GetTask;
16
+ /** Lists data erasure tasks of the account, newest first — the audit journal of who erased what and when. Use to show the operations log or to export it. */
17
+ ListTasks: DataErasureService_ListTasks;
18
+ /** Returns the per-identifier outcome of one task: what was deleted, not found, skipped or failed. Identifiers are reported as hashes, the task never stores them in the clear. */
19
+ ListTaskRows: DataErasureService_ListTaskRows;
20
+ }
21
+ /** How the subjects of an erasure request are addressed. */
22
+ export type SubjectIdentifierType = 'SUBJECT_IDENTIFIER_UNKNOWN' | 'SUBJECT_IDENTIFIER_USER_ID' | 'SUBJECT_IDENTIFIER_HWID' | 'SUBJECT_IDENTIFIER_EMAIL';
23
+ export type ErasureTaskStatus = 'ERASURE_TASK_STATUS_PENDING' | 'ERASURE_TASK_STATUS_IN_PROGRESS' | 'ERASURE_TASK_STATUS_DONE' | 'ERASURE_TASK_STATUS_FAILED';
24
+ export type ErasureRowResult = 'ERASURE_ROW_RESULT_UNKNOWN' | 'ERASURE_ROW_RESULT_DELETED' | 'ERASURE_ROW_RESULT_NOT_FOUND' | 'ERASURE_ROW_RESULT_SKIPPED' | 'ERASURE_ROW_RESULT_FAILED';
25
+ export type CreateDataErasureTaskRequest = {
26
+ identifierType?: SubjectIdentifierType;
27
+ identifiers?: string[];
28
+ /** Application codes (format XXXXX-XXXXX) the subjects are erased from. */
29
+ applicationCodes?: string[];
30
+ /** Counts what would be erased and writes nothing. */
31
+ dryRun?: boolean;
32
+ /**
33
+ * Id of the finished dry run that measured this erase. Required above
34
+ * confirmation_threshold subjects: nobody erases a volume they have not seen.
35
+ */
36
+ confirmationDryRunTaskId?: number;
37
+ };
38
+ export type CreateDataErasureTaskResponse = {
39
+ taskId: number;
40
+ /**
41
+ * Set when the request was refused because it erases more subjects than the
42
+ * threshold and carried no matching dry run.
43
+ */
44
+ confirmationRequired: boolean;
45
+ confirmationThreshold: number;
46
+ };
47
+ export type GetDataErasureTaskRequest = {
48
+ taskId?: number;
49
+ };
50
+ export type GetDataErasureTaskResponse = {
51
+ task: DataErasureTask;
52
+ };
53
+ export type ListDataErasureTasksRequest = {
54
+ limit?: number;
55
+ offset?: number;
56
+ };
57
+ export type ListDataErasureTasksResponse = {
58
+ tasks: DataErasureTask[];
59
+ };
60
+ export type ListDataErasureTaskRowsRequest = {
61
+ taskId?: number;
62
+ limit?: number;
63
+ offset?: number;
64
+ };
65
+ export type ListDataErasureTaskRowsResponse = {
66
+ rows: DataErasureTaskRow[];
67
+ };
68
+ export type DataErasureTask = {
69
+ taskId: number;
70
+ identifierType: SubjectIdentifierType;
71
+ applicationCodes: string[];
72
+ dryRun: boolean;
73
+ status: ErasureTaskStatus;
74
+ totalCount: number;
75
+ deletedCount: number;
76
+ notFoundCount: number;
77
+ failedCount: number;
78
+ failReason: string;
79
+ /** Control panel user who started the task, 0 when it came from an API token. */
80
+ initiatorUserId: number;
81
+ /** API token that started the task, 0 when a control panel user did. */
82
+ initiatorTokenId: number;
83
+ created: Date;
84
+ startedAt: Date;
85
+ finishedAt: Date;
86
+ };
87
+ export type DataErasureTaskRow = {
88
+ /** sha256 of the identifier: the journal of an erasure must not hold personal data. */
89
+ identifierHash: string;
90
+ applicationCode: string;
91
+ result: ErasureRowResult;
92
+ detail: string;
93
+ created: Date;
94
+ };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
package/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import { CategoriesService as pushwoosh_rpc_v2_categories_CategoriesService } fr
23
23
  import { MessagingService as pushwoosh_channels_messagingApi_v2_MessagingService } from './pushwoosh_channels_messagingApi_v2';
24
24
  import { CloudPagesService as pushwoosh_rpc_v2_cloud_pages_CloudPagesService } from './cloud_pages';
25
25
  import { CustomerJourneyService as pushwoosh_rpc_v2_customer_journey_CustomerJourneyService } from './customer_journey';
26
+ import { DataErasureService as pushwoosh_rpc_v2_data_erasure_DataErasureService } from './data_erasure';
26
27
  import { DeeplinksService as pushwoosh_rpc_v2_deeplinks_DeeplinksService } from './deeplinks';
27
28
  import { DeliverabilityCheckerService as pushwoosh_rpc_v2_deliverability_checker_DeliverabilityCheckerService } from './deliverability_checker';
28
29
  import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './devices';
@@ -46,6 +47,7 @@ import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlert
46
47
  import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
47
48
  import { KakaoPresetsService as pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService } from './kakao_presets';
48
49
  import { linePresetsService as pushwoosh_rpc_v2_line_presets_linePresetsService } from './line_presets';
50
+ import { liveActivitySchemasService as pushwoosh_rpc_v2_live_activity_schemas_liveActivitySchemasService } from './live_activity_schemas';
49
51
  import { MediaFilesService as pushwoosh_rpc_v2_media_files_MediaFilesService } from './media_files';
50
52
  import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
51
53
  import { NewsService as pushwoosh_rpc_v2_news_NewsService } from './news';
@@ -98,6 +100,7 @@ export type API = {
98
100
  messaging: pushwoosh_channels_messagingApi_v2_MessagingService;
99
101
  cloudPages: pushwoosh_rpc_v2_cloud_pages_CloudPagesService;
100
102
  customerJourney: pushwoosh_rpc_v2_customer_journey_CustomerJourneyService;
103
+ dataErasure: pushwoosh_rpc_v2_data_erasure_DataErasureService;
101
104
  deeplinks: pushwoosh_rpc_v2_deeplinks_DeeplinksService;
102
105
  deliverabilityChecker: pushwoosh_rpc_v2_deliverability_checker_DeliverabilityCheckerService;
103
106
  devices: pushwoosh_rpc_v2_devices_DevicesService;
@@ -121,6 +124,7 @@ export type API = {
121
124
  iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
122
125
  kakaoPresets: pushwoosh_rpc_v2_kakao_presets_KakaoPresetsService;
123
126
  linePresets: pushwoosh_rpc_v2_line_presets_linePresetsService;
127
+ liveActivitySchemas: pushwoosh_rpc_v2_live_activity_schemas_liveActivitySchemasService;
124
128
  mediaFiles: pushwoosh_rpc_v2_media_files_MediaFilesService;
125
129
  messages: pushwoosh_rpc_v2_messages_MessagesService;
126
130
  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.301",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",