@credo-ts/didcomm-push-notifications 0.0.1

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.
Files changed (123) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +23 -0
  3. package/build/fcm/DidCommPushNotificationsFcmApi.d.ts +40 -0
  4. package/build/fcm/DidCommPushNotificationsFcmApi.js +75 -0
  5. package/build/fcm/DidCommPushNotificationsFcmApi.js.map +1 -0
  6. package/build/fcm/DidCommPushNotificationsFcmModule.d.ts +10 -0
  7. package/build/fcm/DidCommPushNotificationsFcmModule.js +31 -0
  8. package/build/fcm/DidCommPushNotificationsFcmModule.js.map +1 -0
  9. package/build/fcm/PushNotificationsFcmApi.d.ts +40 -0
  10. package/build/fcm/PushNotificationsFcmApi.js +75 -0
  11. package/build/fcm/PushNotificationsFcmApi.js.map +1 -0
  12. package/build/fcm/PushNotificationsFcmModule.d.ts +10 -0
  13. package/build/fcm/PushNotificationsFcmModule.js +31 -0
  14. package/build/fcm/PushNotificationsFcmModule.js.map +1 -0
  15. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportError.d.ts +19 -0
  16. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportError.js +18 -0
  17. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportError.js.map +1 -0
  18. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportReason.d.ts +11 -0
  19. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportReason.js +13 -0
  20. package/build/fcm/errors/DidCommPushNotificationsFcmProblemReportReason.js.map +1 -0
  21. package/build/fcm/errors/PushNotificationsFcmProblemReportError.d.ts +19 -0
  22. package/build/fcm/errors/PushNotificationsFcmProblemReportError.js +18 -0
  23. package/build/fcm/errors/PushNotificationsFcmProblemReportError.js.map +1 -0
  24. package/build/fcm/errors/PushNotificationsFcmProblemReportReason.d.ts +11 -0
  25. package/build/fcm/errors/PushNotificationsFcmProblemReportReason.js +13 -0
  26. package/build/fcm/errors/PushNotificationsFcmProblemReportReason.js.map +1 -0
  27. package/build/fcm/errors/index.d.ts +2 -0
  28. package/build/fcm/errors/index.js +3 -0
  29. package/build/fcm/errors/index.js.map +1 -0
  30. package/build/fcm/handlers/DidCommPushNotificationsFcmDeviceInfoHandler.d.ts +13 -0
  31. package/build/fcm/handlers/DidCommPushNotificationsFcmDeviceInfoHandler.js +18 -0
  32. package/build/fcm/handlers/DidCommPushNotificationsFcmDeviceInfoHandler.js.map +1 -0
  33. package/build/fcm/handlers/DidCommPushNotificationsFcmProblemReportHandler.d.ts +13 -0
  34. package/build/fcm/handlers/DidCommPushNotificationsFcmProblemReportHandler.js +18 -0
  35. package/build/fcm/handlers/DidCommPushNotificationsFcmProblemReportHandler.js.map +1 -0
  36. package/build/fcm/handlers/DidCommPushNotificationsFcmSetDeviceInfoHandler.d.ts +17 -0
  37. package/build/fcm/handlers/DidCommPushNotificationsFcmSetDeviceInfoHandler.js +20 -0
  38. package/build/fcm/handlers/DidCommPushNotificationsFcmSetDeviceInfoHandler.js.map +1 -0
  39. package/build/fcm/handlers/PushNotificationsFcmDeviceInfoHandler.d.ts +13 -0
  40. package/build/fcm/handlers/PushNotificationsFcmDeviceInfoHandler.js +18 -0
  41. package/build/fcm/handlers/PushNotificationsFcmDeviceInfoHandler.js.map +1 -0
  42. package/build/fcm/handlers/PushNotificationsFcmProblemReportHandler.d.ts +13 -0
  43. package/build/fcm/handlers/PushNotificationsFcmProblemReportHandler.js +18 -0
  44. package/build/fcm/handlers/PushNotificationsFcmProblemReportHandler.js.map +1 -0
  45. package/build/fcm/handlers/PushNotificationsFcmSetDeviceInfoHandler.d.ts +17 -0
  46. package/build/fcm/handlers/PushNotificationsFcmSetDeviceInfoHandler.js +20 -0
  47. package/build/fcm/handlers/PushNotificationsFcmSetDeviceInfoHandler.js.map +1 -0
  48. package/build/fcm/handlers/index.d.ts +3 -0
  49. package/build/fcm/handlers/index.js +4 -0
  50. package/build/fcm/handlers/index.js.map +1 -0
  51. package/build/fcm/index.d.ts +5 -0
  52. package/build/fcm/index.js +6 -0
  53. package/build/fcm/index.js.map +1 -0
  54. package/build/fcm/messages/DidCommPushNotificationsFcmDeviceInfoMessage.d.ts +20 -0
  55. package/build/fcm/messages/DidCommPushNotificationsFcmDeviceInfoMessage.js +48 -0
  56. package/build/fcm/messages/DidCommPushNotificationsFcmDeviceInfoMessage.js.map +1 -0
  57. package/build/fcm/messages/DidCommPushNotificationsFcmGetDeviceInfoMessage.d.ts +15 -0
  58. package/build/fcm/messages/DidCommPushNotificationsFcmGetDeviceInfoMessage.js +30 -0
  59. package/build/fcm/messages/DidCommPushNotificationsFcmGetDeviceInfoMessage.js.map +1 -0
  60. package/build/fcm/messages/DidCommPushNotificationsFcmProblemReportMessage.d.ts +11 -0
  61. package/build/fcm/messages/DidCommPushNotificationsFcmProblemReportMessage.js +26 -0
  62. package/build/fcm/messages/DidCommPushNotificationsFcmProblemReportMessage.js.map +1 -0
  63. package/build/fcm/messages/DidCommPushNotificationsFcmSetDeviceInfoMessage.d.ts +18 -0
  64. package/build/fcm/messages/DidCommPushNotificationsFcmSetDeviceInfoMessage.js +46 -0
  65. package/build/fcm/messages/DidCommPushNotificationsFcmSetDeviceInfoMessage.js.map +1 -0
  66. package/build/fcm/messages/PushNotificationsFcmDeviceInfoMessage.d.ts +20 -0
  67. package/build/fcm/messages/PushNotificationsFcmDeviceInfoMessage.js +48 -0
  68. package/build/fcm/messages/PushNotificationsFcmDeviceInfoMessage.js.map +1 -0
  69. package/build/fcm/messages/PushNotificationsFcmGetDeviceInfoMessage.d.ts +15 -0
  70. package/build/fcm/messages/PushNotificationsFcmGetDeviceInfoMessage.js +30 -0
  71. package/build/fcm/messages/PushNotificationsFcmGetDeviceInfoMessage.js.map +1 -0
  72. package/build/fcm/messages/PushNotificationsFcmProblemReportMessage.d.ts +11 -0
  73. package/build/fcm/messages/PushNotificationsFcmProblemReportMessage.js +26 -0
  74. package/build/fcm/messages/PushNotificationsFcmProblemReportMessage.js.map +1 -0
  75. package/build/fcm/messages/PushNotificationsFcmSetDeviceInfoMessage.d.ts +18 -0
  76. package/build/fcm/messages/PushNotificationsFcmSetDeviceInfoMessage.js +46 -0
  77. package/build/fcm/messages/PushNotificationsFcmSetDeviceInfoMessage.js.map +1 -0
  78. package/build/fcm/messages/index.d.ts +4 -0
  79. package/build/fcm/messages/index.js +5 -0
  80. package/build/fcm/messages/index.js.map +1 -0
  81. package/build/fcm/models/DidCommFcmDeviceInfo.d.ts +4 -0
  82. package/build/fcm/models/DidCommFcmDeviceInfo.js +2 -0
  83. package/build/fcm/models/DidCommFcmDeviceInfo.js.map +1 -0
  84. package/build/fcm/models/DidCommPushNotificationsFcmRole.d.ts +10 -0
  85. package/build/fcm/models/DidCommPushNotificationsFcmRole.js +12 -0
  86. package/build/fcm/models/DidCommPushNotificationsFcmRole.js.map +1 -0
  87. package/build/fcm/models/FcmDeviceInfo.d.ts +4 -0
  88. package/build/fcm/models/FcmDeviceInfo.js +2 -0
  89. package/build/fcm/models/FcmDeviceInfo.js.map +1 -0
  90. package/build/fcm/models/PushNotificationsFcmRole.d.ts +10 -0
  91. package/build/fcm/models/PushNotificationsFcmRole.js +12 -0
  92. package/build/fcm/models/PushNotificationsFcmRole.js.map +1 -0
  93. package/build/fcm/models/index.d.ts +2 -0
  94. package/build/fcm/models/index.js +3 -0
  95. package/build/fcm/models/index.js.map +1 -0
  96. package/build/fcm/repository/DidCommPushNotificationsFcmRecord.d.ts +26 -0
  97. package/build/fcm/repository/DidCommPushNotificationsFcmRecord.js +23 -0
  98. package/build/fcm/repository/DidCommPushNotificationsFcmRecord.js.map +1 -0
  99. package/build/fcm/repository/DidCommPushNotificationsFcmRepository.d.ts +5 -0
  100. package/build/fcm/repository/DidCommPushNotificationsFcmRepository.js +26 -0
  101. package/build/fcm/repository/DidCommPushNotificationsFcmRepository.js.map +1 -0
  102. package/build/fcm/repository/PushNotificationsFcmRecord.d.ts +26 -0
  103. package/build/fcm/repository/PushNotificationsFcmRecord.js +23 -0
  104. package/build/fcm/repository/PushNotificationsFcmRecord.js.map +1 -0
  105. package/build/fcm/repository/PushNotificationsFcmRepository.d.ts +5 -0
  106. package/build/fcm/repository/PushNotificationsFcmRepository.js +26 -0
  107. package/build/fcm/repository/PushNotificationsFcmRepository.js.map +1 -0
  108. package/build/fcm/repository/index.d.ts +2 -0
  109. package/build/fcm/repository/index.js +3 -0
  110. package/build/fcm/repository/index.js.map +1 -0
  111. package/build/fcm/services/DidCommPushNotificationsFcmService.d.ts +19 -0
  112. package/build/fcm/services/DidCommPushNotificationsFcmService.js +93 -0
  113. package/build/fcm/services/DidCommPushNotificationsFcmService.js.map +1 -0
  114. package/build/fcm/services/PushNotificationsFcmService.d.ts +19 -0
  115. package/build/fcm/services/PushNotificationsFcmService.js +93 -0
  116. package/build/fcm/services/PushNotificationsFcmService.js.map +1 -0
  117. package/build/fcm/services/index.d.ts +1 -0
  118. package/build/fcm/services/index.js +2 -0
  119. package/build/fcm/services/index.js.map +1 -0
  120. package/build/index.d.ts +1 -0
  121. package/build/index.js +2 -0
  122. package/build/index.js.map +1 -0
  123. package/package.json +39 -0
@@ -0,0 +1,20 @@
1
+ import { DidCommMessage } from '@credo-ts/didcomm';
2
+ import type { FcmDeviceInfo } from '../models/index.js';
3
+ interface PushNotificationsFcmDeviceInfoOptions extends FcmDeviceInfo {
4
+ id?: string;
5
+ threadId: string;
6
+ }
7
+ /**
8
+ * Message to send the fcm device information from another agent for push notifications
9
+ * This is used as a response for the `get-device-info` message
10
+ *
11
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#device-info
12
+ */
13
+ export declare class PushNotificationsFcmDeviceInfoMessage extends DidCommMessage {
14
+ constructor(options: PushNotificationsFcmDeviceInfoOptions);
15
+ deviceToken: string | null;
16
+ devicePlatform: string | null;
17
+ static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
18
+ readonly type: string;
19
+ }
20
+ export {};
@@ -0,0 +1,48 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm';
11
+ import { Expose } from 'class-transformer';
12
+ import { IsString, ValidateIf } from 'class-validator';
13
+ /**
14
+ * Message to send the fcm device information from another agent for push notifications
15
+ * This is used as a response for the `get-device-info` message
16
+ *
17
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#device-info
18
+ */
19
+ export class PushNotificationsFcmDeviceInfoMessage extends DidCommMessage {
20
+ constructor(options) {
21
+ super();
22
+ this.type = PushNotificationsFcmDeviceInfoMessage.type.messageTypeUri;
23
+ if (options) {
24
+ this.id = options.id ?? this.generateId();
25
+ this.setThread({ threadId: options.threadId });
26
+ this.deviceToken = options.deviceToken;
27
+ this.devicePlatform = options.devicePlatform;
28
+ }
29
+ }
30
+ }
31
+ PushNotificationsFcmDeviceInfoMessage.type = parseMessageType('https://didcomm.org/push-notifications-fcm/1.0/device-info');
32
+ __decorate([
33
+ Expose({ name: 'device_token' }),
34
+ IsString(),
35
+ ValidateIf((_, value) => value !== null),
36
+ __metadata("design:type", Object)
37
+ ], PushNotificationsFcmDeviceInfoMessage.prototype, "deviceToken", void 0);
38
+ __decorate([
39
+ Expose({ name: 'device_platform' }),
40
+ IsString(),
41
+ ValidateIf((_, value) => value !== null),
42
+ __metadata("design:type", Object)
43
+ ], PushNotificationsFcmDeviceInfoMessage.prototype, "devicePlatform", void 0);
44
+ __decorate([
45
+ IsValidMessageType(PushNotificationsFcmDeviceInfoMessage.type),
46
+ __metadata("design:type", Object)
47
+ ], PushNotificationsFcmDeviceInfoMessage.prototype, "type", void 0);
48
+ //# sourceMappingURL=PushNotificationsFcmDeviceInfoMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmDeviceInfoMessage.js","sourceRoot":"","sources":["../../../src/fcm/messages/PushNotificationsFcmDeviceInfoMessage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAQtD;;;;;GAKG;AACH,MAAM,OAAO,qCAAsC,SAAQ,cAAc;IACvE,YAAmB,OAA8C;QAC/D,KAAK,EAAE,CAAA;QAuBO,SAAI,GAAG,qCAAqC,CAAC,IAAI,CAAC,cAAc,CAAA;QArB9E,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;YAC9C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;QAC9C,CAAC;IACH,CAAC;;AAYsB,0CAAI,GAAG,gBAAgB,CAAC,4DAA4D,CAAC,AAAjF,CAAiF;AAPrG;IAHN,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAChC,QAAQ,EAAE;IACV,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;;0EACP;AAK3B;IAHN,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IACnC,QAAQ,EAAE;IACV,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;;6EACJ;AAKrB;IADf,kBAAkB,CAAC,qCAAqC,CAAC,IAAI,CAAC;;mEACiB"}
@@ -0,0 +1,15 @@
1
+ import { DidCommMessage } from '@credo-ts/didcomm';
2
+ interface PushNotificationsFcmGetDeviceInfoOptions {
3
+ id?: string;
4
+ }
5
+ /**
6
+ * Message to get fcm the device information from another agent for push notifications
7
+ *
8
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#get-device-info
9
+ */
10
+ export declare class PushNotificationsFcmGetDeviceInfoMessage extends DidCommMessage {
11
+ constructor(options: PushNotificationsFcmGetDeviceInfoOptions);
12
+ static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
13
+ readonly type: string;
14
+ }
15
+ export {};
@@ -0,0 +1,30 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm';
11
+ /**
12
+ * Message to get fcm the device information from another agent for push notifications
13
+ *
14
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#get-device-info
15
+ */
16
+ export class PushNotificationsFcmGetDeviceInfoMessage extends DidCommMessage {
17
+ constructor(options) {
18
+ super();
19
+ this.type = PushNotificationsFcmGetDeviceInfoMessage.type.messageTypeUri;
20
+ if (options) {
21
+ this.id = options.id ?? this.generateId();
22
+ }
23
+ }
24
+ }
25
+ PushNotificationsFcmGetDeviceInfoMessage.type = parseMessageType('https://didcomm.org/push-notifications-fcm/1.0/get-device-info');
26
+ __decorate([
27
+ IsValidMessageType(PushNotificationsFcmGetDeviceInfoMessage.type),
28
+ __metadata("design:type", Object)
29
+ ], PushNotificationsFcmGetDeviceInfoMessage.prototype, "type", void 0);
30
+ //# sourceMappingURL=PushNotificationsFcmGetDeviceInfoMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmGetDeviceInfoMessage.js","sourceRoot":"","sources":["../../../src/fcm/messages/PushNotificationsFcmGetDeviceInfoMessage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAMxF;;;;GAIG;AACH,MAAM,OAAO,wCAAyC,SAAQ,cAAc;IAC1E,YAAmB,OAAiD;QAClE,KAAK,EAAE,CAAA;QASO,SAAI,GAAG,wCAAwC,CAAC,IAAI,CAAC,cAAc,CAAA;QAPjF,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;QAC3C,CAAC;IACH,CAAC;;AACsB,6CAAI,GAAG,gBAAgB,CAAC,gEAAgE,CAAC,AAArF,CAAqF;AAGhG;IADf,kBAAkB,CAAC,wCAAwC,CAAC,IAAI,CAAC;;sEACiB"}
@@ -0,0 +1,11 @@
1
+ import type { DidCommProblemReportMessageOptions } from '@credo-ts/didcomm';
2
+ import { DidCommProblemReportMessage } from '@credo-ts/didcomm';
3
+ export type PushNotificationsFcmProblemReportMessageOptions = DidCommProblemReportMessageOptions;
4
+ /**
5
+ * @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0035-report-problem/README.md
6
+ * @internal
7
+ */
8
+ export declare class PushNotificationsFcmProblemReportMessage extends DidCommProblemReportMessage {
9
+ readonly type: string;
10
+ static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
11
+ }
@@ -0,0 +1,26 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { DidCommProblemReportMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm';
11
+ /**
12
+ * @see https://github.com/hyperledger/aries-rfcs/blob/main/features/0035-report-problem/README.md
13
+ * @internal
14
+ */
15
+ export class PushNotificationsFcmProblemReportMessage extends DidCommProblemReportMessage {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.type = PushNotificationsFcmProblemReportMessage.type.messageTypeUri;
19
+ }
20
+ }
21
+ PushNotificationsFcmProblemReportMessage.type = parseMessageType('https://didcomm.org/push-notifications-fcm/1.0/problem-report');
22
+ __decorate([
23
+ IsValidMessageType(PushNotificationsFcmProblemReportMessage.type),
24
+ __metadata("design:type", Object)
25
+ ], PushNotificationsFcmProblemReportMessage.prototype, "type", void 0);
26
+ //# sourceMappingURL=PushNotificationsFcmProblemReportMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmProblemReportMessage.js","sourceRoot":"","sources":["../../../src/fcm/messages/PushNotificationsFcmProblemReportMessage.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIrG;;;GAGG;AACH,MAAM,OAAO,wCAAyC,SAAQ,2BAA2B;IAAzF;;QAEkB,SAAI,GAAG,wCAAwC,CAAC,IAAI,CAAC,cAAc,CAAA;IAErF,CAAC;;AADwB,6CAAI,GAAG,gBAAgB,CAAC,+DAA+D,CAAC,AAApF,CAAoF;AAD/F;IADf,kBAAkB,CAAC,wCAAwC,CAAC,IAAI,CAAC;;sEACiB"}
@@ -0,0 +1,18 @@
1
+ import { DidCommMessage } from '@credo-ts/didcomm';
2
+ import type { FcmDeviceInfo } from '../models/index.js';
3
+ interface PushNotificationsFcmSetDeviceInfoOptions extends FcmDeviceInfo {
4
+ id?: string;
5
+ }
6
+ /**
7
+ * Message to set the fcm device information at another agent for push notifications
8
+ *
9
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#set-device-info
10
+ */
11
+ export declare class PushNotificationsFcmSetDeviceInfoMessage extends DidCommMessage {
12
+ constructor(options: PushNotificationsFcmSetDeviceInfoOptions);
13
+ deviceToken: string | null;
14
+ devicePlatform: string | null;
15
+ static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
16
+ readonly type: string;
17
+ }
18
+ export {};
@@ -0,0 +1,46 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { DidCommMessage, IsValidMessageType, parseMessageType } from '@credo-ts/didcomm';
11
+ import { Expose } from 'class-transformer';
12
+ import { IsString, ValidateIf } from 'class-validator';
13
+ /**
14
+ * Message to set the fcm device information at another agent for push notifications
15
+ *
16
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#set-device-info
17
+ */
18
+ export class PushNotificationsFcmSetDeviceInfoMessage extends DidCommMessage {
19
+ constructor(options) {
20
+ super();
21
+ this.type = PushNotificationsFcmSetDeviceInfoMessage.type.messageTypeUri;
22
+ if (options) {
23
+ this.id = options.id ?? this.generateId();
24
+ this.deviceToken = options.deviceToken;
25
+ this.devicePlatform = options.devicePlatform;
26
+ }
27
+ }
28
+ }
29
+ PushNotificationsFcmSetDeviceInfoMessage.type = parseMessageType('https://didcomm.org/push-notifications-fcm/1.0/set-device-info');
30
+ __decorate([
31
+ Expose({ name: 'device_token' }),
32
+ IsString(),
33
+ ValidateIf((_, value) => value !== null),
34
+ __metadata("design:type", Object)
35
+ ], PushNotificationsFcmSetDeviceInfoMessage.prototype, "deviceToken", void 0);
36
+ __decorate([
37
+ Expose({ name: 'device_platform' }),
38
+ IsString(),
39
+ ValidateIf((_, value) => value !== null),
40
+ __metadata("design:type", Object)
41
+ ], PushNotificationsFcmSetDeviceInfoMessage.prototype, "devicePlatform", void 0);
42
+ __decorate([
43
+ IsValidMessageType(PushNotificationsFcmSetDeviceInfoMessage.type),
44
+ __metadata("design:type", Object)
45
+ ], PushNotificationsFcmSetDeviceInfoMessage.prototype, "type", void 0);
46
+ //# sourceMappingURL=PushNotificationsFcmSetDeviceInfoMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmSetDeviceInfoMessage.js","sourceRoot":"","sources":["../../../src/fcm/messages/PushNotificationsFcmSetDeviceInfoMessage.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAOtD;;;;GAIG;AACH,MAAM,OAAO,wCAAyC,SAAQ,cAAc;IAC1E,YAAmB,OAAiD;QAClE,KAAK,EAAE,CAAA;QAsBO,SAAI,GAAG,wCAAwC,CAAC,IAAI,CAAC,cAAc,CAAA;QApBjF,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;QAC9C,CAAC;IACH,CAAC;;AAYsB,6CAAI,GAAG,gBAAgB,CAAC,gEAAgE,CAAC,AAArF,CAAqF;AAPzG;IAHN,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAChC,QAAQ,EAAE;IACV,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;;6EACP;AAK3B;IAHN,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IACnC,QAAQ,EAAE;IACV,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;;gFACJ;AAKrB;IADf,kBAAkB,CAAC,wCAAwC,CAAC,IAAI,CAAC;;sEACiB"}
@@ -0,0 +1,4 @@
1
+ export { DidCommPushNotificationsFcmDeviceInfoMessage } from './DidCommPushNotificationsFcmDeviceInfoMessage.js';
2
+ export { DidCommPushNotificationsFcmGetDeviceInfoMessage } from './DidCommPushNotificationsFcmGetDeviceInfoMessage.js';
3
+ export { DidCommPushNotificationsFcmProblemReportMessage } from './DidCommPushNotificationsFcmProblemReportMessage.js';
4
+ export { DidCommPushNotificationsFcmSetDeviceInfoMessage } from './DidCommPushNotificationsFcmSetDeviceInfoMessage.js';
@@ -0,0 +1,5 @@
1
+ export { DidCommPushNotificationsFcmDeviceInfoMessage } from './DidCommPushNotificationsFcmDeviceInfoMessage.js';
2
+ export { DidCommPushNotificationsFcmGetDeviceInfoMessage } from './DidCommPushNotificationsFcmGetDeviceInfoMessage.js';
3
+ export { DidCommPushNotificationsFcmProblemReportMessage } from './DidCommPushNotificationsFcmProblemReportMessage.js';
4
+ export { DidCommPushNotificationsFcmSetDeviceInfoMessage } from './DidCommPushNotificationsFcmSetDeviceInfoMessage.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fcm/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4CAA4C,EAAE,MAAM,mDAAmD,CAAA;AAChH,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAA;AACtH,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAA;AACtH,OAAO,EAAE,+CAA+C,EAAE,MAAM,sDAAsD,CAAA"}
@@ -0,0 +1,4 @@
1
+ export type DidCommFcmDeviceInfo = {
2
+ deviceToken: string | null;
3
+ devicePlatform: string | null;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DidCommFcmDeviceInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommFcmDeviceInfo.js","sourceRoot":"","sources":["../../../src/fcm/models/DidCommFcmDeviceInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Push Notification FCM roles based on the flow defined in RFC 0734.
3
+ *
4
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#roles
5
+ * @public
6
+ */
7
+ export declare enum DidCommPushNotificationsFcmRole {
8
+ Sender = "notification-sender",
9
+ Receiver = "notification-receiver"
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Push Notification FCM roles based on the flow defined in RFC 0734.
3
+ *
4
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#roles
5
+ * @public
6
+ */
7
+ export var DidCommPushNotificationsFcmRole;
8
+ (function (DidCommPushNotificationsFcmRole) {
9
+ DidCommPushNotificationsFcmRole["Sender"] = "notification-sender";
10
+ DidCommPushNotificationsFcmRole["Receiver"] = "notification-receiver";
11
+ })(DidCommPushNotificationsFcmRole || (DidCommPushNotificationsFcmRole = {}));
12
+ //# sourceMappingURL=DidCommPushNotificationsFcmRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommPushNotificationsFcmRole.js","sourceRoot":"","sources":["../../../src/fcm/models/DidCommPushNotificationsFcmRole.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,iEAA8B,CAAA;IAC9B,qEAAkC,CAAA;AACpC,CAAC,EAHW,+BAA+B,KAA/B,+BAA+B,QAG1C"}
@@ -0,0 +1,4 @@
1
+ export type FcmDeviceInfo = {
2
+ deviceToken: string | null;
3
+ devicePlatform: string | null;
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FcmDeviceInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FcmDeviceInfo.js","sourceRoot":"","sources":["../../../src/fcm/models/FcmDeviceInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Push Notification FCM roles based on the flow defined in RFC 0734.
3
+ *
4
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#roles
5
+ * @public
6
+ */
7
+ export declare enum PushNotificationsFcmRole {
8
+ Sender = "notification-sender",
9
+ Receiver = "notification-receiver"
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Push Notification FCM roles based on the flow defined in RFC 0734.
3
+ *
4
+ * @see https://github.com/hyperledger/aries-rfcs/tree/main/features/0734-push-notifications-fcm#roles
5
+ * @public
6
+ */
7
+ export var PushNotificationsFcmRole;
8
+ (function (PushNotificationsFcmRole) {
9
+ PushNotificationsFcmRole["Sender"] = "notification-sender";
10
+ PushNotificationsFcmRole["Receiver"] = "notification-receiver";
11
+ })(PushNotificationsFcmRole || (PushNotificationsFcmRole = {}));
12
+ //# sourceMappingURL=PushNotificationsFcmRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmRole.js","sourceRoot":"","sources":["../../../src/fcm/models/PushNotificationsFcmRole.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,0DAA8B,CAAA;IAC9B,8DAAkC,CAAA;AACpC,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC"}
@@ -0,0 +1,2 @@
1
+ export * from './DidCommFcmDeviceInfo.js';
2
+ export * from './DidCommPushNotificationsFcmRole.js';
@@ -0,0 +1,3 @@
1
+ export * from './DidCommFcmDeviceInfo.js';
2
+ export * from './DidCommPushNotificationsFcmRole.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fcm/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,sCAAsC,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { TagsBase } from '@credo-ts/core';
2
+ import { BaseRecord } from '@credo-ts/core';
3
+ export type DefaultPushNotificationsFcmTags = {
4
+ connectionId: string;
5
+ };
6
+ export type CustomPushNotificationsFcmTags = TagsBase;
7
+ export interface DidCommPushNotificationsFcmStorageProps {
8
+ id?: string;
9
+ deviceToken: string | null;
10
+ devicePlatform: string | null;
11
+ connectionId: string;
12
+ tags?: CustomPushNotificationsFcmTags;
13
+ firebaseProjectId?: string;
14
+ }
15
+ export declare class DidCommPushNotificationsFcmRecord extends BaseRecord<DefaultPushNotificationsFcmTags, CustomPushNotificationsFcmTags> {
16
+ deviceToken: string | null;
17
+ devicePlatform: string | null;
18
+ connectionId: string;
19
+ firebaseProjectId?: string;
20
+ static readonly type = "PushNotificationsFcmRecord";
21
+ readonly type = "PushNotificationsFcmRecord";
22
+ constructor(props: DidCommPushNotificationsFcmStorageProps);
23
+ getTags(): {
24
+ connectionId: string;
25
+ };
26
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseRecord, utils } from '@credo-ts/core';
2
+ export class DidCommPushNotificationsFcmRecord extends BaseRecord {
3
+ constructor(props) {
4
+ super();
5
+ this.type = DidCommPushNotificationsFcmRecord.type;
6
+ if (props) {
7
+ this.id = props.id ?? utils.uuid();
8
+ this.devicePlatform = props.devicePlatform;
9
+ this.deviceToken = props.deviceToken;
10
+ this.connectionId = props.connectionId;
11
+ this.firebaseProjectId = props.firebaseProjectId;
12
+ this._tags = props.tags ?? {};
13
+ }
14
+ }
15
+ getTags() {
16
+ return {
17
+ ...this._tags,
18
+ connectionId: this.connectionId,
19
+ };
20
+ }
21
+ }
22
+ DidCommPushNotificationsFcmRecord.type = 'PushNotificationsFcmRecord';
23
+ //# sourceMappingURL=DidCommPushNotificationsFcmRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommPushNotificationsFcmRecord.js","sourceRoot":"","sources":["../../../src/fcm/repository/DidCommPushNotificationsFcmRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAiBlD,MAAM,OAAO,iCAAkC,SAAQ,UAGtD;IAQC,YAAmB,KAA8C;QAC/D,KAAK,EAAE,CAAA;QAHO,SAAI,GAAG,iCAAiC,CAAC,IAAI,CAAA;QAK3D,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;YAC1C,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;YACpC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;YAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,IAAI,EAAE,CAAA;QAC/B,CAAC;IACH,CAAC;IAEM,OAAO;QACZ,OAAO;YACL,GAAG,IAAI,CAAC,KAAK;YACb,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAA;IACH,CAAC;;AArBsB,sCAAI,GAAG,4BAA4B,AAA/B,CAA+B"}
@@ -0,0 +1,5 @@
1
+ import { EventEmitter, Repository, type StorageService } from '@credo-ts/core';
2
+ import { DidCommPushNotificationsFcmRecord } from './DidCommPushNotificationsFcmRecord.js';
3
+ export declare class DidCommPushNotificationsFcmRepository extends Repository<DidCommPushNotificationsFcmRecord> {
4
+ constructor(storageService: StorageService<DidCommPushNotificationsFcmRecord>, eventEmitter: EventEmitter);
5
+ }
@@ -0,0 +1,26 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
11
+ return function (target, key) { decorator(target, key, paramIndex); }
12
+ };
13
+ import { EventEmitter, InjectionSymbols, inject, injectable, Repository } from '@credo-ts/core';
14
+ import { DidCommPushNotificationsFcmRecord } from './DidCommPushNotificationsFcmRecord.js';
15
+ let DidCommPushNotificationsFcmRepository = class DidCommPushNotificationsFcmRepository extends Repository {
16
+ constructor(storageService, eventEmitter) {
17
+ super(DidCommPushNotificationsFcmRecord, storageService, eventEmitter);
18
+ }
19
+ };
20
+ DidCommPushNotificationsFcmRepository = __decorate([
21
+ injectable(),
22
+ __param(0, inject(InjectionSymbols.StorageService)),
23
+ __metadata("design:paramtypes", [Object, EventEmitter])
24
+ ], DidCommPushNotificationsFcmRepository);
25
+ export { DidCommPushNotificationsFcmRepository };
26
+ //# sourceMappingURL=DidCommPushNotificationsFcmRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DidCommPushNotificationsFcmRepository.js","sourceRoot":"","sources":["../../../src/fcm/repository/DidCommPushNotificationsFcmRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAuB,MAAM,gBAAgB,CAAA;AAEpH,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAA;AAGnF,IAAM,qCAAqC,GAA3C,MAAM,qCAAsC,SAAQ,UAA6C;IACtG,YAC2C,cAAiE,EAC1G,YAA0B;QAE1B,KAAK,CAAC,iCAAiC,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACxE,CAAC;CACF,CAAA;AAPY,qCAAqC;IADjD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,YAAY;GAHjB,qCAAqC,CAOjD"}
@@ -0,0 +1,26 @@
1
+ import type { TagsBase } from '@credo-ts/core';
2
+ import { BaseRecord } from '@credo-ts/core';
3
+ export type DefaultPushNotificationsFcmTags = {
4
+ connectionId: string;
5
+ };
6
+ export type CustomPushNotificationsFcmTags = TagsBase;
7
+ export interface PushNotificationsFcmStorageProps {
8
+ id?: string;
9
+ deviceToken: string | null;
10
+ devicePlatform: string | null;
11
+ connectionId: string;
12
+ tags?: CustomPushNotificationsFcmTags;
13
+ firebaseProjectId?: string;
14
+ }
15
+ export declare class PushNotificationsFcmRecord extends BaseRecord<DefaultPushNotificationsFcmTags, CustomPushNotificationsFcmTags> {
16
+ deviceToken: string | null;
17
+ devicePlatform: string | null;
18
+ connectionId: string;
19
+ firebaseProjectId?: string;
20
+ static readonly type = "PushNotificationsFcmRecord";
21
+ readonly type = "PushNotificationsFcmRecord";
22
+ constructor(props: PushNotificationsFcmStorageProps);
23
+ getTags(): {
24
+ connectionId: string;
25
+ };
26
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseRecord, utils } from '@credo-ts/core';
2
+ export class PushNotificationsFcmRecord extends BaseRecord {
3
+ constructor(props) {
4
+ super();
5
+ this.type = PushNotificationsFcmRecord.type;
6
+ if (props) {
7
+ this.id = props.id ?? utils.uuid();
8
+ this.devicePlatform = props.devicePlatform;
9
+ this.deviceToken = props.deviceToken;
10
+ this.connectionId = props.connectionId;
11
+ this.firebaseProjectId = props.firebaseProjectId;
12
+ this._tags = props.tags ?? {};
13
+ }
14
+ }
15
+ getTags() {
16
+ return {
17
+ ...this._tags,
18
+ connectionId: this.connectionId,
19
+ };
20
+ }
21
+ }
22
+ PushNotificationsFcmRecord.type = 'PushNotificationsFcmRecord';
23
+ //# sourceMappingURL=PushNotificationsFcmRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmRecord.js","sourceRoot":"","sources":["../../../src/fcm/repository/PushNotificationsFcmRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAiBlD,MAAM,OAAO,0BAA2B,SAAQ,UAG/C;IAQC,YAAmB,KAAuC;QACxD,KAAK,EAAE,CAAA;QAHO,SAAI,GAAG,0BAA0B,CAAC,IAAI,CAAA;QAKpD,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;YAC1C,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;YACpC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;YAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,IAAI,EAAE,CAAA;QAC/B,CAAC;IACH,CAAC;IAEM,OAAO;QACZ,OAAO;YACL,GAAG,IAAI,CAAC,KAAK;YACb,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAA;IACH,CAAC;;AArBsB,+BAAI,GAAG,4BAA4B,AAA/B,CAA+B"}
@@ -0,0 +1,5 @@
1
+ import { EventEmitter, Repository, type StorageService } from '@credo-ts/core';
2
+ import { PushNotificationsFcmRecord } from './PushNotificationsFcmRecord.js';
3
+ export declare class PushNotificationsFcmRepository extends Repository<PushNotificationsFcmRecord> {
4
+ constructor(storageService: StorageService<PushNotificationsFcmRecord>, eventEmitter: EventEmitter);
5
+ }
@@ -0,0 +1,26 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
11
+ return function (target, key) { decorator(target, key, paramIndex); }
12
+ };
13
+ import { EventEmitter, InjectionSymbols, inject, injectable, Repository } from '@credo-ts/core';
14
+ import { PushNotificationsFcmRecord } from './PushNotificationsFcmRecord.js';
15
+ let PushNotificationsFcmRepository = class PushNotificationsFcmRepository extends Repository {
16
+ constructor(storageService, eventEmitter) {
17
+ super(PushNotificationsFcmRecord, storageService, eventEmitter);
18
+ }
19
+ };
20
+ PushNotificationsFcmRepository = __decorate([
21
+ injectable(),
22
+ __param(0, inject(InjectionSymbols.StorageService)),
23
+ __metadata("design:paramtypes", [Object, EventEmitter])
24
+ ], PushNotificationsFcmRepository);
25
+ export { PushNotificationsFcmRepository };
26
+ //# sourceMappingURL=PushNotificationsFcmRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PushNotificationsFcmRepository.js","sourceRoot":"","sources":["../../../src/fcm/repository/PushNotificationsFcmRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAuB,MAAM,gBAAgB,CAAA;AAEpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAGrE,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,UAAsC;IACxF,YAC2C,cAA0D,EACnG,YAA0B;QAE1B,KAAK,CAAC,0BAA0B,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;IACjE,CAAC;CACF,CAAA;AAPY,8BAA8B;IAD1C,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAA;6CAC1B,YAAY;GAHjB,8BAA8B,CAO1C"}
@@ -0,0 +1,2 @@
1
+ export * from './DidCommPushNotificationsFcmRecord.js';
2
+ export * from './DidCommPushNotificationsFcmRepository.js';
@@ -0,0 +1,3 @@
1
+ export * from './DidCommPushNotificationsFcmRecord.js';
2
+ export * from './DidCommPushNotificationsFcmRepository.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fcm/repository/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA;AACtD,cAAc,4CAA4C,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { AgentContext, Logger } from '@credo-ts/core';
2
+ import { DidCommInboundMessageContext } from '@credo-ts/didcomm';
3
+ import { DidCommPushNotificationsFcmDeviceInfoMessage, DidCommPushNotificationsFcmGetDeviceInfoMessage, DidCommPushNotificationsFcmSetDeviceInfoMessage } from '../messages/index.js';
4
+ import type { DidCommFcmDeviceInfo } from '../models/DidCommFcmDeviceInfo.js';
5
+ import { DidCommPushNotificationsFcmRecord, DidCommPushNotificationsFcmRepository } from '../repository/index.js';
6
+ export declare class DidCommPushNotificationsFcmService {
7
+ private pushNotificationsFcmRepository;
8
+ private logger;
9
+ constructor(pushNotificationsFcmRepository: DidCommPushNotificationsFcmRepository, logger: Logger);
10
+ createSetDeviceInfo(deviceInfo: DidCommFcmDeviceInfo): DidCommPushNotificationsFcmSetDeviceInfoMessage;
11
+ createGetDeviceInfo(): DidCommPushNotificationsFcmGetDeviceInfoMessage;
12
+ createDeviceInfo(options: {
13
+ threadId: string;
14
+ deviceInfo: DidCommFcmDeviceInfo;
15
+ }): DidCommPushNotificationsFcmDeviceInfoMessage;
16
+ processSetDeviceInfo(messageContext: DidCommInboundMessageContext<DidCommPushNotificationsFcmSetDeviceInfoMessage>): Promise<void>;
17
+ getPushNotificationRecordByConnectionId(agentContext: AgentContext, connectionId: string): Promise<DidCommPushNotificationsFcmRecord>;
18
+ findPushNotificationRecordByConnectionId(agentContext: AgentContext, connectionId: string): Promise<DidCommPushNotificationsFcmRecord | null>;
19
+ }