@party-stack/connect 0.0.0-stage → 0.2.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 (96) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +189 -2
  3. package/lib/ServiceConnector.d.ts +68 -0
  4. package/lib/ServiceConnector.d.ts.map +1 -0
  5. package/lib/ServiceConnector.js +1 -0
  6. package/lib/acquireConfiguredConnection.d.ts +32 -0
  7. package/lib/acquireConfiguredConnection.d.ts.map +1 -0
  8. package/lib/acquireConfiguredConnection.js +54 -0
  9. package/lib/acquireConfiguredConnection.js.map +1 -0
  10. package/lib/authentication.d.ts +76 -0
  11. package/lib/authentication.d.ts.map +1 -0
  12. package/lib/authentication.js +95 -0
  13. package/lib/authentication.js.map +1 -0
  14. package/lib/authorization.d.ts +43 -0
  15. package/lib/authorization.d.ts.map +1 -0
  16. package/lib/authorization.js +175 -0
  17. package/lib/authorization.js.map +1 -0
  18. package/lib/core/accessToken.d.ts +10 -0
  19. package/lib/core/accessToken.d.ts.map +1 -0
  20. package/lib/core/accessToken.js +87 -0
  21. package/lib/core/accessToken.js.map +1 -0
  22. package/lib/core/backend.d.ts +33 -0
  23. package/lib/core/backend.d.ts.map +1 -0
  24. package/lib/core/backend.js +249 -0
  25. package/lib/core/backend.js.map +1 -0
  26. package/lib/core/errors.d.ts +13 -0
  27. package/lib/core/errors.d.ts.map +1 -0
  28. package/lib/core/errors.js +26 -0
  29. package/lib/core/errors.js.map +1 -0
  30. package/lib/core/maintenance.d.ts +11 -0
  31. package/lib/core/maintenance.d.ts.map +1 -0
  32. package/lib/core/maintenance.js +21 -0
  33. package/lib/core/maintenance.js.map +1 -0
  34. package/lib/core/migrate.d.ts +18 -0
  35. package/lib/core/migrate.d.ts.map +1 -0
  36. package/lib/core/migrate.js +71 -0
  37. package/lib/core/migrate.js.map +1 -0
  38. package/lib/core/oauth.d.ts +27 -0
  39. package/lib/core/oauth.d.ts.map +1 -0
  40. package/lib/core/oauth.js +82 -0
  41. package/lib/core/oauth.js.map +1 -0
  42. package/lib/core/oauthAuthority.d.ts +90 -0
  43. package/lib/core/oauthAuthority.d.ts.map +1 -0
  44. package/lib/core/oauthAuthority.js +382 -0
  45. package/lib/core/oauthAuthority.js.map +1 -0
  46. package/lib/core/store.d.ts +48 -0
  47. package/lib/core/store.d.ts.map +1 -0
  48. package/lib/core/store.js +92 -0
  49. package/lib/core/store.js.map +1 -0
  50. package/lib/createDefaultConnectionEgressHandlers.d.ts +5 -0
  51. package/lib/createDefaultConnectionEgressHandlers.d.ts.map +1 -0
  52. package/lib/createDefaultConnectionEgressHandlers.js +20 -0
  53. package/lib/createDefaultConnectionEgressHandlers.js.map +1 -0
  54. package/lib/index.d.ts +20 -0
  55. package/lib/index.js +17 -0
  56. package/lib/makeConnectManager.d.ts +90 -0
  57. package/lib/makeConnectManager.d.ts.map +1 -0
  58. package/lib/makeConnectManager.js +91 -0
  59. package/lib/makeConnectManager.js.map +1 -0
  60. package/lib/oauth/storage.d.ts +9 -0
  61. package/lib/oauth/storage.d.ts.map +1 -0
  62. package/lib/oauth/storage.js +16 -0
  63. package/lib/oauth/storage.js.map +1 -0
  64. package/lib/publicOntology.d.ts +17 -0
  65. package/lib/publicOntology.d.ts.map +1 -0
  66. package/lib/publicOntology.js +86 -0
  67. package/lib/publicOntology.js.map +1 -0
  68. package/lib/server/index.d.ts +33 -0
  69. package/lib/server/index.d.ts.map +1 -0
  70. package/lib/server/index.js +119 -0
  71. package/lib/server/index.js.map +1 -0
  72. package/lib/serverClient.d.ts +28 -0
  73. package/lib/serverClient.d.ts.map +1 -0
  74. package/lib/serverClient.js +67 -0
  75. package/lib/serverClient.js.map +1 -0
  76. package/lib/serviceConnections.d.ts +39 -0
  77. package/lib/serviceConnections.d.ts.map +1 -0
  78. package/lib/serviceConnections.js +277 -0
  79. package/lib/serviceConnections.js.map +1 -0
  80. package/lib/spec/index.d.ts +958 -0
  81. package/lib/spec/index.d.ts.map +1 -0
  82. package/lib/spec/index.js +565 -0
  83. package/lib/spec/index.js.map +1 -0
  84. package/lib/toWebEgress.d.ts +12 -0
  85. package/lib/toWebEgress.d.ts.map +1 -0
  86. package/lib/toWebEgress.js +28 -0
  87. package/lib/toWebEgress.js.map +1 -0
  88. package/lib/types.d.ts +44 -0
  89. package/lib/types.d.ts.map +1 -0
  90. package/lib/types.js +25 -0
  91. package/lib/types.js.map +1 -0
  92. package/lib/withHttpAuthenticationErrors.d.ts +5 -0
  93. package/lib/withHttpAuthenticationErrors.d.ts.map +1 -0
  94. package/lib/withHttpAuthenticationErrors.js +20 -0
  95. package/lib/withHttpAuthenticationErrors.js.map +1 -0
  96. package/package.json +34 -3
@@ -0,0 +1,958 @@
1
+ import { Infer } from "@party-stack/ontology-spec";
2
+ //#region src/spec/index.d.ts
3
+ /** Portable definitions. Applications may add properties/links before compiling them.
4
+ * Connection and attempt instances are private to the credential authority.
5
+ */
6
+ export declare const connectOntology: {
7
+ types: never[];
8
+ objectTypes: ({
9
+ name: "ServiceInstance";
10
+ pluralDisplayName: "Service instances";
11
+ displayName: "Service instance";
12
+ primaryKey: "id";
13
+ properties: ({
14
+ name: "id";
15
+ displayName: "Id";
16
+ type: {
17
+ kind: "string";
18
+ value: {};
19
+ };
20
+ } | {
21
+ name: "title";
22
+ displayName: "Title";
23
+ type: {
24
+ kind: "string";
25
+ value: {};
26
+ };
27
+ } | {
28
+ name: "service";
29
+ displayName: "Service";
30
+ type: {
31
+ kind: "string";
32
+ value: {};
33
+ };
34
+ } | {
35
+ name: "instanceUrl";
36
+ displayName: "Instance url";
37
+ type: {
38
+ kind: "string";
39
+ value: {};
40
+ };
41
+ })[];
42
+ } | {
43
+ name: "OAuthApplication";
44
+ pluralDisplayName: "OAuthApplications";
45
+ displayName: "OAuth application";
46
+ primaryKey: "id";
47
+ properties: ({
48
+ name: "id";
49
+ displayName: "Id";
50
+ type: {
51
+ kind: "string";
52
+ value: {};
53
+ };
54
+ } | {
55
+ name: "title";
56
+ displayName: "Title";
57
+ type: {
58
+ kind: "string";
59
+ value: {};
60
+ };
61
+ } | {
62
+ name: "serviceInstance";
63
+ displayName: "Service instance";
64
+ type: {
65
+ kind: "objectReference";
66
+ value: {
67
+ objectType: "ServiceInstance";
68
+ };
69
+ };
70
+ } | {
71
+ name: "flow";
72
+ displayName: "Flow";
73
+ type: {
74
+ kind: "string";
75
+ value: {
76
+ constraint: {
77
+ kind: "enum";
78
+ value: {
79
+ options: ({
80
+ value: "authorization-code";
81
+ label: "authorization-code";
82
+ } | {
83
+ value: "client-credentials";
84
+ label: "client-credentials";
85
+ })[];
86
+ };
87
+ };
88
+ };
89
+ };
90
+ } | {
91
+ name: "clientId";
92
+ displayName: "Client id";
93
+ type: {
94
+ kind: "string";
95
+ value: {};
96
+ };
97
+ } | {
98
+ name: "scopes";
99
+ displayName: "Requested scopes";
100
+ type: {
101
+ kind: "optional";
102
+ value: {
103
+ type: {
104
+ kind: "list";
105
+ value: {
106
+ elementType: {
107
+ kind: "string";
108
+ value: {};
109
+ };
110
+ };
111
+ };
112
+ };
113
+ };
114
+ } | {
115
+ name: "redirectUrl";
116
+ displayName: "Redirect URL";
117
+ type: {
118
+ kind: "optional";
119
+ value: {
120
+ type: {
121
+ kind: "string";
122
+ value: {};
123
+ };
124
+ };
125
+ };
126
+ } | {
127
+ name: "clientSecret";
128
+ displayName: "Client secret";
129
+ type: {
130
+ kind: "optional";
131
+ value: {
132
+ type: {
133
+ kind: "encrypted";
134
+ value: {
135
+ type: {
136
+ kind: "string";
137
+ value: {};
138
+ };
139
+ };
140
+ };
141
+ };
142
+ };
143
+ } | {
144
+ name: "serviceAppId";
145
+ displayName: "Service app id";
146
+ type: {
147
+ kind: "optional";
148
+ value: {
149
+ type: {
150
+ kind: "string";
151
+ value: {};
152
+ };
153
+ };
154
+ };
155
+ } | {
156
+ name: "connection";
157
+ displayName: "Connection";
158
+ type: {
159
+ kind: "optional";
160
+ value: {
161
+ type: {
162
+ kind: "objectReference";
163
+ value: {
164
+ objectType: "OAuthConnection";
165
+ };
166
+ };
167
+ };
168
+ };
169
+ })[];
170
+ } | {
171
+ name: "OAuthConnection";
172
+ pluralDisplayName: "OAuthConnections";
173
+ displayName: "OAuth connection";
174
+ primaryKey: "id";
175
+ properties: ({
176
+ name: "id";
177
+ displayName: "Id";
178
+ type: {
179
+ kind: "string";
180
+ value: {};
181
+ };
182
+ } | {
183
+ name: "title";
184
+ displayName: "Title";
185
+ type: {
186
+ kind: "string";
187
+ value: {};
188
+ };
189
+ } | {
190
+ name: "application";
191
+ displayName: "Application";
192
+ type: {
193
+ kind: "objectReference";
194
+ value: {
195
+ objectType: "OAuthApplication";
196
+ };
197
+ };
198
+ } | {
199
+ name: "userId";
200
+ displayName: "User id";
201
+ type: {
202
+ kind: "optional";
203
+ value: {
204
+ type: {
205
+ kind: "string";
206
+ value: {};
207
+ };
208
+ };
209
+ };
210
+ } | {
211
+ name: "status";
212
+ displayName: "Status";
213
+ type: {
214
+ kind: "string";
215
+ value: {
216
+ constraint: {
217
+ kind: "enum";
218
+ value: {
219
+ options: ({
220
+ value: "active";
221
+ label: "active";
222
+ } | {
223
+ value: "needs-auth";
224
+ label: "needs-auth";
225
+ } | {
226
+ value: "inactive";
227
+ label: "inactive";
228
+ })[];
229
+ };
230
+ };
231
+ };
232
+ };
233
+ } | {
234
+ name: "accessToken";
235
+ displayName: "Access token";
236
+ type: {
237
+ kind: "optional";
238
+ value: {
239
+ type: {
240
+ kind: "encrypted";
241
+ value: {
242
+ type: {
243
+ kind: "string";
244
+ value: {};
245
+ };
246
+ };
247
+ };
248
+ };
249
+ };
250
+ } | {
251
+ name: "accessTokenExpiresAt";
252
+ displayName: "Access token expires at";
253
+ type: {
254
+ kind: "optional";
255
+ value: {
256
+ type: {
257
+ kind: "timestamp";
258
+ value: {};
259
+ };
260
+ };
261
+ };
262
+ } | {
263
+ name: "refreshToken";
264
+ displayName: "Refresh token";
265
+ type: {
266
+ kind: "optional";
267
+ value: {
268
+ type: {
269
+ kind: "encrypted";
270
+ value: {
271
+ type: {
272
+ kind: "string";
273
+ value: {};
274
+ };
275
+ };
276
+ };
277
+ };
278
+ };
279
+ } | {
280
+ name: "refreshTokenExpiresAt";
281
+ displayName: "Refresh token expires at";
282
+ type: {
283
+ kind: "optional";
284
+ value: {
285
+ type: {
286
+ kind: "timestamp";
287
+ value: {};
288
+ };
289
+ };
290
+ };
291
+ } | {
292
+ name: "grantedScopes";
293
+ displayName: "Granted scopes";
294
+ type: {
295
+ kind: "optional";
296
+ value: {
297
+ type: {
298
+ kind: "string";
299
+ value: {};
300
+ };
301
+ };
302
+ };
303
+ } | {
304
+ name: "operationId";
305
+ displayName: "Operation id";
306
+ type: {
307
+ kind: "optional";
308
+ value: {
309
+ type: {
310
+ kind: "string";
311
+ value: {};
312
+ };
313
+ };
314
+ };
315
+ } | {
316
+ name: "operationExpiresAt";
317
+ displayName: "Operation expires at";
318
+ type: {
319
+ kind: "optional";
320
+ value: {
321
+ type: {
322
+ kind: "timestamp";
323
+ value: {};
324
+ };
325
+ };
326
+ };
327
+ })[];
328
+ } | {
329
+ name: "ApiKeyConnection";
330
+ pluralDisplayName: "API key connections";
331
+ displayName: "API key connection";
332
+ primaryKey: "id";
333
+ properties: ({
334
+ name: "id";
335
+ displayName: "Id";
336
+ type: {
337
+ kind: "string";
338
+ value: {};
339
+ };
340
+ } | {
341
+ name: "title";
342
+ displayName: "Title";
343
+ type: {
344
+ kind: "string";
345
+ value: {};
346
+ };
347
+ } | {
348
+ name: "serviceInstance";
349
+ displayName: "Service instance";
350
+ type: {
351
+ kind: "objectReference";
352
+ value: {
353
+ objectType: "ServiceInstance";
354
+ };
355
+ };
356
+ } | {
357
+ name: "userId";
358
+ displayName: "User id";
359
+ type: {
360
+ kind: "string";
361
+ value: {};
362
+ };
363
+ } | {
364
+ name: "status";
365
+ displayName: "Status";
366
+ type: {
367
+ kind: "string";
368
+ value: {
369
+ constraint: {
370
+ kind: "enum";
371
+ value: {
372
+ options: ({
373
+ value: "active";
374
+ label: "Active";
375
+ } | {
376
+ value: "needs-auth";
377
+ label: "Needs authentication";
378
+ } | {
379
+ value: "inactive";
380
+ label: "Inactive";
381
+ })[];
382
+ };
383
+ };
384
+ };
385
+ };
386
+ } | {
387
+ name: "apiKey";
388
+ displayName: "API key";
389
+ type: {
390
+ kind: "optional";
391
+ value: {
392
+ type: {
393
+ kind: "encrypted";
394
+ value: {
395
+ type: {
396
+ kind: "string";
397
+ value: {};
398
+ };
399
+ };
400
+ };
401
+ };
402
+ };
403
+ } | {
404
+ name: "expiresAt";
405
+ displayName: "Expires at";
406
+ type: {
407
+ kind: "optional";
408
+ value: {
409
+ type: {
410
+ kind: "timestamp";
411
+ value: {};
412
+ };
413
+ };
414
+ };
415
+ })[];
416
+ } | {
417
+ name: "ExternalSessionConnection";
418
+ pluralDisplayName: "External session connections";
419
+ displayName: "External session connection";
420
+ primaryKey: "id";
421
+ properties: ({
422
+ name: "id";
423
+ displayName: "Id";
424
+ type: {
425
+ kind: "string";
426
+ value: {};
427
+ };
428
+ } | {
429
+ name: "title";
430
+ displayName: "Title";
431
+ type: {
432
+ kind: "string";
433
+ value: {};
434
+ };
435
+ } | {
436
+ name: "serviceInstance";
437
+ displayName: "Service instance";
438
+ type: {
439
+ kind: "objectReference";
440
+ value: {
441
+ objectType: "ServiceInstance";
442
+ };
443
+ };
444
+ } | {
445
+ name: "userId";
446
+ displayName: "User id";
447
+ type: {
448
+ kind: "string";
449
+ value: {};
450
+ };
451
+ } | {
452
+ name: "status";
453
+ displayName: "Status";
454
+ type: {
455
+ kind: "string";
456
+ value: {
457
+ constraint: {
458
+ kind: "enum";
459
+ value: {
460
+ options: ({
461
+ value: "active";
462
+ label: "Active";
463
+ } | {
464
+ value: "needs-auth";
465
+ label: "Needs authentication";
466
+ } | {
467
+ value: "inactive";
468
+ label: "Inactive";
469
+ })[];
470
+ };
471
+ };
472
+ };
473
+ };
474
+ } | {
475
+ name: "sessionId";
476
+ displayName: "Session id";
477
+ type: {
478
+ kind: "string";
479
+ value: {};
480
+ };
481
+ } | {
482
+ name: "expiresAt";
483
+ displayName: "Expires at";
484
+ type: {
485
+ kind: "optional";
486
+ value: {
487
+ type: {
488
+ kind: "timestamp";
489
+ value: {};
490
+ };
491
+ };
492
+ };
493
+ })[];
494
+ } | {
495
+ name: "OAuthAuthorizationAttempt";
496
+ pluralDisplayName: "OAuthAuthorizationAttempts";
497
+ displayName: "OAuth authorization attempt";
498
+ primaryKey: "id";
499
+ properties: ({
500
+ name: "id";
501
+ displayName: "Id";
502
+ type: {
503
+ kind: "string";
504
+ value: {};
505
+ };
506
+ } | {
507
+ name: "application";
508
+ displayName: "Application";
509
+ type: {
510
+ kind: "objectReference";
511
+ value: {
512
+ objectType: "OAuthApplication";
513
+ };
514
+ };
515
+ } | {
516
+ name: "principalId";
517
+ displayName: "Principal id";
518
+ type: {
519
+ kind: "optional";
520
+ value: {
521
+ type: {
522
+ kind: "string";
523
+ value: {};
524
+ };
525
+ };
526
+ };
527
+ } | {
528
+ name: "connectionId";
529
+ displayName: "Connection id";
530
+ type: {
531
+ kind: "string";
532
+ value: {};
533
+ };
534
+ } | {
535
+ name: "redirectUrl";
536
+ displayName: "Redirect url";
537
+ type: {
538
+ kind: "string";
539
+ value: {};
540
+ };
541
+ } | {
542
+ name: "returnUrl";
543
+ displayName: "Return url";
544
+ type: {
545
+ kind: "optional";
546
+ value: {
547
+ type: {
548
+ kind: "string";
549
+ value: {};
550
+ };
551
+ };
552
+ };
553
+ } | {
554
+ name: "codeVerifier";
555
+ displayName: "Code verifier";
556
+ type: {
557
+ kind: "encrypted";
558
+ value: {
559
+ type: {
560
+ kind: "string";
561
+ value: {};
562
+ };
563
+ };
564
+ };
565
+ } | {
566
+ name: "expiresAt";
567
+ displayName: "Expires at";
568
+ type: {
569
+ kind: "timestamp";
570
+ value: {};
571
+ };
572
+ } | {
573
+ name: "status";
574
+ displayName: "Status";
575
+ type: {
576
+ kind: "string";
577
+ value: {
578
+ constraint: {
579
+ kind: "enum";
580
+ value: {
581
+ options: ({
582
+ value: "pending";
583
+ label: "pending";
584
+ } | {
585
+ value: "exchanging";
586
+ label: "exchanging";
587
+ } | {
588
+ value: "completed";
589
+ label: "completed";
590
+ } | {
591
+ value: "failed";
592
+ label: "failed";
593
+ })[];
594
+ };
595
+ };
596
+ };
597
+ };
598
+ })[];
599
+ })[];
600
+ linkTypes: never[];
601
+ actionTypes: ({
602
+ name: "beginAuthorization";
603
+ displayName: "Begin authorization";
604
+ logic: never[];
605
+ parameters: ({
606
+ name: "applicationId";
607
+ displayName: "Application";
608
+ type: {
609
+ kind: "objectReference";
610
+ value: {
611
+ objectType: "OAuthApplication";
612
+ };
613
+ };
614
+ } | {
615
+ name: "principalId";
616
+ displayName: "Principal";
617
+ type: {
618
+ kind: "optional";
619
+ value: {
620
+ type: {
621
+ kind: "string";
622
+ value: {};
623
+ };
624
+ };
625
+ };
626
+ } | {
627
+ name: "redirectUrl";
628
+ displayName: "Redirect URL";
629
+ type: {
630
+ kind: "string";
631
+ value: {};
632
+ };
633
+ } | {
634
+ name: "returnUrl";
635
+ displayName: "Return URL";
636
+ type: {
637
+ kind: "optional";
638
+ value: {
639
+ type: {
640
+ kind: "string";
641
+ value: {};
642
+ };
643
+ };
644
+ };
645
+ } | {
646
+ name: "connectionId";
647
+ displayName: "Connection";
648
+ type: {
649
+ kind: "optional";
650
+ value: {
651
+ type: {
652
+ kind: "objectReference";
653
+ value: {
654
+ objectType: "OAuthConnection";
655
+ };
656
+ };
657
+ };
658
+ };
659
+ })[];
660
+ returnType: {
661
+ kind: "struct";
662
+ value: {
663
+ fields: ({
664
+ name: "id";
665
+ displayName: "Attempt";
666
+ type: {
667
+ kind: "string";
668
+ value: {};
669
+ };
670
+ } | {
671
+ name: "authorizationUrl";
672
+ displayName: "Authorization URL";
673
+ type: {
674
+ kind: "string";
675
+ value: {};
676
+ };
677
+ })[];
678
+ };
679
+ };
680
+ } | {
681
+ name: "completeAuthorization";
682
+ displayName: "Complete authorization";
683
+ logic: never[];
684
+ parameters: ({
685
+ name: "callbackUrl";
686
+ displayName: "Callback URL";
687
+ type: {
688
+ kind: "string";
689
+ value: {};
690
+ };
691
+ } | {
692
+ name: "principalId";
693
+ displayName: "Principal";
694
+ type: {
695
+ kind: "optional";
696
+ value: {
697
+ type: {
698
+ kind: "string";
699
+ value: {};
700
+ };
701
+ };
702
+ };
703
+ })[];
704
+ returnType: {
705
+ kind: "struct";
706
+ value: {
707
+ fields: {
708
+ name: "connectionId";
709
+ displayName: "Connection";
710
+ type: {
711
+ kind: "objectReference";
712
+ value: {
713
+ objectType: "OAuthConnection";
714
+ };
715
+ };
716
+ }[];
717
+ };
718
+ };
719
+ } | {
720
+ name: "connectClientCredentials";
721
+ displayName: "Connect client credentials";
722
+ logic: never[];
723
+ parameters: ({
724
+ name: "applicationId";
725
+ displayName: "Application";
726
+ type: {
727
+ kind: "objectReference";
728
+ value: {
729
+ objectType: "OAuthApplication";
730
+ };
731
+ };
732
+ } | {
733
+ name: "connectionId";
734
+ displayName: "Connection";
735
+ type: {
736
+ kind: "optional";
737
+ value: {
738
+ type: {
739
+ kind: "objectReference";
740
+ value: {
741
+ objectType: "OAuthConnection";
742
+ };
743
+ };
744
+ };
745
+ };
746
+ })[];
747
+ returnType: {
748
+ kind: "struct";
749
+ value: {
750
+ fields: {
751
+ name: "connectionId";
752
+ displayName: "Connection";
753
+ type: {
754
+ kind: "objectReference";
755
+ value: {
756
+ objectType: "OAuthConnection";
757
+ };
758
+ };
759
+ }[];
760
+ };
761
+ };
762
+ } | {
763
+ name: "refreshConnection";
764
+ displayName: "Refresh connection";
765
+ logic: never[];
766
+ parameters: {
767
+ name: "connectionId";
768
+ displayName: "Connection";
769
+ type: {
770
+ kind: "objectReference";
771
+ value: {
772
+ objectType: "OAuthConnection";
773
+ };
774
+ };
775
+ }[];
776
+ returnType: {
777
+ kind: "struct";
778
+ value: {
779
+ fields: {
780
+ name: "connectionId";
781
+ displayName: "Connection";
782
+ type: {
783
+ kind: "objectReference";
784
+ value: {
785
+ objectType: "OAuthConnection";
786
+ };
787
+ };
788
+ }[];
789
+ };
790
+ };
791
+ } | {
792
+ name: "disconnectConnection";
793
+ displayName: "Disconnect connection";
794
+ logic: never[];
795
+ parameters: {
796
+ name: "connectionId";
797
+ displayName: "Connection";
798
+ type: {
799
+ kind: "objectReference";
800
+ value: {
801
+ objectType: "OAuthConnection";
802
+ };
803
+ };
804
+ }[];
805
+ } | {
806
+ name: "forgetConnection";
807
+ displayName: "Forget connection";
808
+ logic: never[];
809
+ parameters: {
810
+ name: "connectionId";
811
+ displayName: "Connection";
812
+ type: {
813
+ kind: "objectReference";
814
+ value: {
815
+ objectType: "OAuthConnection";
816
+ };
817
+ };
818
+ }[];
819
+ } | {
820
+ name: "connectApiKey";
821
+ displayName: "Connect API key";
822
+ logic: never[];
823
+ parameters: ({
824
+ name: "serviceInstanceId";
825
+ displayName: "Service instance";
826
+ type: {
827
+ kind: "objectReference";
828
+ value: {
829
+ objectType: "ServiceInstance";
830
+ };
831
+ };
832
+ } | {
833
+ name: "apiKey";
834
+ displayName: "API key";
835
+ type: {
836
+ kind: "string";
837
+ value: {};
838
+ };
839
+ })[];
840
+ returnType: {
841
+ kind: "struct";
842
+ value: {
843
+ fields: {
844
+ name: "connectionId";
845
+ displayName: "Connection";
846
+ type: {
847
+ kind: "objectReference";
848
+ value: {
849
+ objectType: "ApiKeyConnection";
850
+ };
851
+ };
852
+ }[];
853
+ };
854
+ };
855
+ } | {
856
+ name: "attachExternalSession";
857
+ displayName: "Attach external session";
858
+ logic: never[];
859
+ parameters: ({
860
+ name: "serviceInstanceId";
861
+ displayName: "Service instance";
862
+ type: {
863
+ kind: "objectReference";
864
+ value: {
865
+ objectType: "ServiceInstance";
866
+ };
867
+ };
868
+ } | {
869
+ name: "sessionId";
870
+ displayName: "Session id";
871
+ type: {
872
+ kind: "string";
873
+ value: {};
874
+ };
875
+ })[];
876
+ returnType: {
877
+ kind: "struct";
878
+ value: {
879
+ fields: {
880
+ name: "connectionId";
881
+ displayName: "Connection";
882
+ type: {
883
+ kind: "objectReference";
884
+ value: {
885
+ objectType: "ExternalSessionConnection";
886
+ };
887
+ };
888
+ }[];
889
+ };
890
+ };
891
+ } | {
892
+ name: "disconnectApiKey";
893
+ displayName: "Disconnect API key";
894
+ logic: never[];
895
+ parameters: {
896
+ name: "connectionId";
897
+ displayName: "Connection";
898
+ type: {
899
+ kind: "objectReference";
900
+ value: {
901
+ objectType: "ApiKeyConnection";
902
+ };
903
+ };
904
+ }[];
905
+ } | {
906
+ name: "forgetApiKey";
907
+ displayName: "Forget API key";
908
+ logic: never[];
909
+ parameters: {
910
+ name: "connectionId";
911
+ displayName: "Connection";
912
+ type: {
913
+ kind: "objectReference";
914
+ value: {
915
+ objectType: "ApiKeyConnection";
916
+ };
917
+ };
918
+ }[];
919
+ } | {
920
+ name: "disconnectExternalSession";
921
+ displayName: "Disconnect external session";
922
+ logic: never[];
923
+ parameters: {
924
+ name: "connectionId";
925
+ displayName: "Connection";
926
+ type: {
927
+ kind: "objectReference";
928
+ value: {
929
+ objectType: "ExternalSessionConnection";
930
+ };
931
+ };
932
+ }[];
933
+ } | {
934
+ name: "forgetExternalSession";
935
+ displayName: "Forget external session";
936
+ logic: never[];
937
+ parameters: {
938
+ name: "connectionId";
939
+ displayName: "Connection";
940
+ type: {
941
+ kind: "objectReference";
942
+ value: {
943
+ objectType: "ExternalSessionConnection";
944
+ };
945
+ };
946
+ }[];
947
+ })[];
948
+ queryFunctionTypes: never[];
949
+ };
950
+ export type ConnectOntology = Infer<typeof connectOntology>;
951
+ export type ServiceInstanceRecord = ConnectOntology["objectTypes"]["ServiceInstance"];
952
+ export type OAuthApplicationRecord = ConnectOntology["objectTypes"]["OAuthApplication"];
953
+ export type OAuthConnectionRecord = ConnectOntology["objectTypes"]["OAuthConnection"];
954
+ export type ApiKeyConnectionRecord = ConnectOntology["objectTypes"]["ApiKeyConnection"];
955
+ export type ExternalSessionConnectionRecord = ConnectOntology["objectTypes"]["ExternalSessionConnection"];
956
+ export type OAuthAuthorizationAttemptRecord = ConnectOntology["objectTypes"]["OAuthAuthorizationAttempt"];
957
+ //#endregion
958
+ //# sourceMappingURL=index.d.ts.map