@microsoft/teams.cards 0.2.14 → 2.0.0-preview.0
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/dist/actions/index.d.mts +2 -24
- package/dist/actions/index.d.ts +2 -24
- package/dist/actions/index.js +0 -28
- package/dist/actions/index.mjs +0 -4
- package/dist/actions/submit/collab-stage.d.mts +2 -3
- package/dist/actions/submit/collab-stage.d.ts +2 -3
- package/dist/actions/submit/collab-stage.js +2 -2
- package/dist/actions/submit/collab-stage.js.map +1 -1
- package/dist/actions/submit/collab-stage.mjs +1 -1
- package/dist/actions/submit/collab-stage.mjs.map +1 -1
- package/dist/actions/submit/im-back.d.mts +2 -3
- package/dist/actions/submit/im-back.d.ts +2 -3
- package/dist/actions/submit/im-back.js +2 -2
- package/dist/actions/submit/im-back.js.map +1 -1
- package/dist/actions/submit/im-back.mjs +1 -1
- package/dist/actions/submit/im-back.mjs.map +1 -1
- package/dist/actions/submit/index.d.mts +2 -3
- package/dist/actions/submit/index.d.ts +2 -3
- package/dist/actions/submit/index.js +0 -7
- package/dist/actions/submit/index.mjs +0 -1
- package/dist/actions/submit/invoke.d.mts +2 -3
- package/dist/actions/submit/invoke.d.ts +2 -3
- package/dist/actions/submit/invoke.js +2 -2
- package/dist/actions/submit/invoke.js.map +1 -1
- package/dist/actions/submit/invoke.mjs +1 -1
- package/dist/actions/submit/invoke.mjs.map +1 -1
- package/dist/actions/submit/message-back.d.mts +2 -3
- package/dist/actions/submit/message-back.d.ts +2 -3
- package/dist/actions/submit/message-back.js +2 -2
- package/dist/actions/submit/message-back.js.map +1 -1
- package/dist/actions/submit/message-back.mjs +1 -1
- package/dist/actions/submit/message-back.mjs.map +1 -1
- package/dist/actions/submit/ms-teams-data.d.mts +15 -0
- package/dist/actions/submit/ms-teams-data.d.ts +15 -0
- package/dist/actions/submit/ms-teams-data.js +4 -0
- package/dist/actions/submit/ms-teams-data.js.map +1 -0
- package/dist/actions/submit/ms-teams-data.mjs +3 -0
- package/dist/actions/submit/ms-teams-data.mjs.map +1 -0
- package/dist/actions/submit/sign-in.d.mts +2 -3
- package/dist/actions/submit/sign-in.d.ts +2 -3
- package/dist/actions/submit/sign-in.js +2 -2
- package/dist/actions/submit/sign-in.js.map +1 -1
- package/dist/actions/submit/sign-in.mjs +1 -1
- package/dist/actions/submit/sign-in.mjs.map +1 -1
- package/dist/actions/submit/task-fetch.d.mts +2 -3
- package/dist/actions/submit/task-fetch.d.ts +2 -3
- package/dist/actions/submit/task-fetch.js +3 -3
- package/dist/actions/submit/task-fetch.js.map +1 -1
- package/dist/actions/submit/task-fetch.mjs +2 -2
- package/dist/actions/submit/task-fetch.mjs.map +1 -1
- package/dist/common/index.d.mts +0 -14
- package/dist/common/index.d.ts +0 -14
- package/dist/common/index.js +0 -70
- package/dist/common/index.mjs +0 -10
- package/dist/core.d.mts +10707 -0
- package/dist/core.d.ts +10707 -0
- package/dist/core.js +8718 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +8574 -0
- package/dist/core.mjs.map +1 -0
- package/dist/index.d.mts +3 -25
- package/dist/index.d.ts +3 -25
- package/dist/index.js +5 -47
- package/dist/index.mjs +1 -7
- package/package.json +2 -2
- package/dist/actions/base.d.mts +0 -89
- package/dist/actions/base.d.ts +0 -89
- package/dist/actions/base.js +0 -90
- package/dist/actions/base.js.map +0 -1
- package/dist/actions/base.mjs +0 -88
- package/dist/actions/base.mjs.map +0 -1
- package/dist/actions/execute.d.mts +0 -47
- package/dist/actions/execute.d.ts +0 -47
- package/dist/actions/execute.js +0 -43
- package/dist/actions/execute.js.map +0 -1
- package/dist/actions/execute.mjs +0 -41
- package/dist/actions/execute.mjs.map +0 -1
- package/dist/actions/open-url.d.mts +0 -28
- package/dist/actions/open-url.d.ts +0 -28
- package/dist/actions/open-url.js +0 -28
- package/dist/actions/open-url.js.map +0 -1
- package/dist/actions/open-url.mjs +0 -26
- package/dist/actions/open-url.mjs.map +0 -1
- package/dist/actions/show-card.d.mts +0 -31
- package/dist/actions/show-card.d.ts +0 -31
- package/dist/actions/show-card.js +0 -28
- package/dist/actions/show-card.js.map +0 -1
- package/dist/actions/show-card.mjs +0 -26
- package/dist/actions/show-card.mjs.map +0 -1
- package/dist/actions/submit/submit.d.mts +0 -51
- package/dist/actions/submit/submit.d.ts +0 -51
- package/dist/actions/submit/submit.js +0 -45
- package/dist/actions/submit/submit.js.map +0 -1
- package/dist/actions/submit/submit.mjs +0 -43
- package/dist/actions/submit/submit.mjs.map +0 -1
- package/dist/actions/toggle-visibility.d.mts +0 -29
- package/dist/actions/toggle-visibility.d.ts +0 -29
- package/dist/actions/toggle-visibility.js +0 -29
- package/dist/actions/toggle-visibility.js.map +0 -1
- package/dist/actions/toggle-visibility.mjs +0 -27
- package/dist/actions/toggle-visibility.mjs.map +0 -1
- package/dist/base.d.mts +0 -31
- package/dist/base.d.ts +0 -31
- package/dist/base.js +0 -105
- package/dist/base.js.map +0 -1
- package/dist/base.mjs +0 -103
- package/dist/base.mjs.map +0 -1
- package/dist/card.d.mts +0 -31
- package/dist/card.d.ts +0 -31
- package/dist/card.js +0 -117
- package/dist/card.js.map +0 -1
- package/dist/card.mjs +0 -114
- package/dist/card.mjs.map +0 -1
- package/dist/charts/color.d.mts +0 -3
- package/dist/charts/color.d.ts +0 -3
- package/dist/charts/color.js +0 -4
- package/dist/charts/color.js.map +0 -1
- package/dist/charts/color.mjs +0 -3
- package/dist/charts/color.mjs.map +0 -1
- package/dist/charts/donut.d.mts +0 -2288
- package/dist/charts/donut.d.ts +0 -2288
- package/dist/charts/donut.js +0 -79
- package/dist/charts/donut.js.map +0 -1
- package/dist/charts/donut.mjs +0 -76
- package/dist/charts/donut.mjs.map +0 -1
- package/dist/charts/index.d.mts +0 -31
- package/dist/charts/index.d.ts +0 -31
- package/dist/charts/index.js +0 -28
- package/dist/charts/index.js.map +0 -1
- package/dist/charts/index.mjs +0 -5
- package/dist/charts/index.mjs.map +0 -1
- package/dist/charts/line.d.mts +0 -31
- package/dist/charts/line.d.ts +0 -31
- package/dist/charts/line.js +0 -97
- package/dist/charts/line.js.map +0 -1
- package/dist/charts/line.mjs +0 -93
- package/dist/charts/line.mjs.map +0 -1
- package/dist/common/associated-inputs.d.mts +0 -3
- package/dist/common/associated-inputs.d.ts +0 -3
- package/dist/common/associated-inputs.js +0 -4
- package/dist/common/associated-inputs.js.map +0 -1
- package/dist/common/associated-inputs.mjs +0 -3
- package/dist/common/associated-inputs.mjs.map +0 -1
- package/dist/common/auth/auth-card-button.d.mts +0 -50
- package/dist/common/auth/auth-card-button.d.ts +0 -50
- package/dist/common/auth/auth-card-button.js +0 -45
- package/dist/common/auth/auth-card-button.js.map +0 -1
- package/dist/common/auth/auth-card-button.mjs +0 -43
- package/dist/common/auth/auth-card-button.mjs.map +0 -1
- package/dist/common/auth/auth.d.mts +0 -52
- package/dist/common/auth/auth.d.ts +0 -52
- package/dist/common/auth/auth.js +0 -46
- package/dist/common/auth/auth.js.map +0 -1
- package/dist/common/auth/auth.mjs +0 -44
- package/dist/common/auth/auth.mjs.map +0 -1
- package/dist/common/auth/index.d.mts +0 -3
- package/dist/common/auth/index.d.ts +0 -3
- package/dist/common/auth/index.js +0 -28
- package/dist/common/auth/index.js.map +0 -1
- package/dist/common/auth/index.mjs +0 -5
- package/dist/common/auth/index.mjs.map +0 -1
- package/dist/common/auth/token-exchange-resource.d.mts +0 -37
- package/dist/common/auth/token-exchange-resource.d.ts +0 -37
- package/dist/common/auth/token-exchange-resource.js +0 -25
- package/dist/common/auth/token-exchange-resource.js.map +0 -1
- package/dist/common/auth/token-exchange-resource.mjs +0 -23
- package/dist/common/auth/token-exchange-resource.mjs.map +0 -1
- package/dist/common/color.d.mts +0 -3
- package/dist/common/color.d.ts +0 -3
- package/dist/common/color.js +0 -4
- package/dist/common/color.js.map +0 -1
- package/dist/common/color.mjs +0 -3
- package/dist/common/color.mjs.map +0 -1
- package/dist/common/font.d.mts +0 -5
- package/dist/common/font.d.ts +0 -5
- package/dist/common/font.js +0 -4
- package/dist/common/font.js.map +0 -1
- package/dist/common/font.mjs +0 -3
- package/dist/common/font.mjs.map +0 -1
- package/dist/common/horizontal-alignment.d.mts +0 -6
- package/dist/common/horizontal-alignment.d.ts +0 -6
- package/dist/common/horizontal-alignment.js +0 -4
- package/dist/common/horizontal-alignment.js.map +0 -1
- package/dist/common/horizontal-alignment.mjs +0 -3
- package/dist/common/horizontal-alignment.mjs.map +0 -1
- package/dist/common/refresh.d.mts +0 -23
- package/dist/common/refresh.d.ts +0 -23
- package/dist/common/refresh.js +0 -4
- package/dist/common/refresh.js.map +0 -1
- package/dist/common/refresh.mjs +0 -3
- package/dist/common/refresh.mjs.map +0 -1
- package/dist/common/spacing.d.mts +0 -6
- package/dist/common/spacing.d.ts +0 -6
- package/dist/common/spacing.js +0 -4
- package/dist/common/spacing.js.map +0 -1
- package/dist/common/spacing.mjs +0 -3
- package/dist/common/spacing.mjs.map +0 -1
- package/dist/common/target-element.d.mts +0 -16
- package/dist/common/target-element.d.ts +0 -16
- package/dist/common/target-element.js +0 -4
- package/dist/common/target-element.js.map +0 -1
- package/dist/common/target-element.mjs +0 -3
- package/dist/common/target-element.mjs.map +0 -1
- package/dist/common/target-width.d.mts +0 -9
- package/dist/common/target-width.d.ts +0 -9
- package/dist/common/target-width.js +0 -4
- package/dist/common/target-width.js.map +0 -1
- package/dist/common/target-width.mjs +0 -3
- package/dist/common/target-width.mjs.map +0 -1
- package/dist/common/vertical-alignment.d.mts +0 -6
- package/dist/common/vertical-alignment.d.ts +0 -6
- package/dist/common/vertical-alignment.js +0 -4
- package/dist/common/vertical-alignment.js.map +0 -1
- package/dist/common/vertical-alignment.mjs +0 -3
- package/dist/common/vertical-alignment.mjs.map +0 -1
- package/dist/containers/action-set.d.mts +0 -31
- package/dist/containers/action-set.d.ts +0 -31
- package/dist/containers/action-set.js +0 -28
- package/dist/containers/action-set.js.map +0 -1
- package/dist/containers/action-set.mjs +0 -26
- package/dist/containers/action-set.mjs.map +0 -1
- package/dist/containers/base.d.mts +0 -31
- package/dist/containers/base.d.ts +0 -31
- package/dist/containers/base.js +0 -68
- package/dist/containers/base.js.map +0 -1
- package/dist/containers/base.mjs +0 -66
- package/dist/containers/base.mjs.map +0 -1
- package/dist/containers/carousel.d.mts +0 -31
- package/dist/containers/carousel.d.ts +0 -31
- package/dist/containers/carousel.js +0 -158
- package/dist/containers/carousel.js.map +0 -1
- package/dist/containers/carousel.mjs +0 -155
- package/dist/containers/carousel.mjs.map +0 -1
- package/dist/containers/column-set.d.mts +0 -31
- package/dist/containers/column-set.d.ts +0 -31
- package/dist/containers/column-set.js +0 -44
- package/dist/containers/column-set.js.map +0 -1
- package/dist/containers/column-set.mjs +0 -42
- package/dist/containers/column-set.mjs.map +0 -1
- package/dist/containers/column.d.mts +0 -31
- package/dist/containers/column.d.ts +0 -31
- package/dist/containers/column.js +0 -60
- package/dist/containers/column.js.map +0 -1
- package/dist/containers/column.mjs +0 -58
- package/dist/containers/column.mjs.map +0 -1
- package/dist/containers/container.d.mts +0 -31
- package/dist/containers/container.d.ts +0 -31
- package/dist/containers/container.js +0 -52
- package/dist/containers/container.js.map +0 -1
- package/dist/containers/container.mjs +0 -50
- package/dist/containers/container.mjs.map +0 -1
- package/dist/containers/fact-set.d.mts +0 -31
- package/dist/containers/fact-set.d.ts +0 -31
- package/dist/containers/fact-set.js +0 -43
- package/dist/containers/fact-set.js.map +0 -1
- package/dist/containers/fact-set.mjs +0 -40
- package/dist/containers/fact-set.mjs.map +0 -1
- package/dist/containers/image-set.d.mts +0 -31
- package/dist/containers/image-set.d.ts +0 -31
- package/dist/containers/image-set.js +0 -46
- package/dist/containers/image-set.js.map +0 -1
- package/dist/containers/image-set.mjs +0 -44
- package/dist/containers/image-set.mjs.map +0 -1
- package/dist/containers/index.d.mts +0 -31
- package/dist/containers/index.d.ts +0 -31
- package/dist/containers/index.js +0 -56
- package/dist/containers/index.js.map +0 -1
- package/dist/containers/index.mjs +0 -9
- package/dist/containers/index.mjs.map +0 -1
- package/dist/element.d.mts +0 -31
- package/dist/element.d.ts +0 -31
- package/dist/element.js +0 -4
- package/dist/element.js.map +0 -1
- package/dist/element.mjs +0 -3
- package/dist/element.mjs.map +0 -1
- package/dist/inputs/base.d.mts +0 -31
- package/dist/inputs/base.d.ts +0 -31
- package/dist/inputs/base.js +0 -63
- package/dist/inputs/base.js.map +0 -1
- package/dist/inputs/base.mjs +0 -61
- package/dist/inputs/base.mjs.map +0 -1
- package/dist/inputs/choice-set.d.mts +0 -31
- package/dist/inputs/choice-set.d.ts +0 -31
- package/dist/inputs/choice-set.js +0 -121
- package/dist/inputs/choice-set.js.map +0 -1
- package/dist/inputs/choice-set.mjs +0 -117
- package/dist/inputs/choice-set.mjs.map +0 -1
- package/dist/inputs/date.d.mts +0 -31
- package/dist/inputs/date.d.ts +0 -31
- package/dist/inputs/date.js +0 -52
- package/dist/inputs/date.js.map +0 -1
- package/dist/inputs/date.mjs +0 -50
- package/dist/inputs/date.mjs.map +0 -1
- package/dist/inputs/index.d.mts +0 -31
- package/dist/inputs/index.d.ts +0 -31
- package/dist/inputs/index.js +0 -49
- package/dist/inputs/index.js.map +0 -1
- package/dist/inputs/index.mjs +0 -8
- package/dist/inputs/index.mjs.map +0 -1
- package/dist/inputs/number.d.mts +0 -31
- package/dist/inputs/number.d.ts +0 -31
- package/dist/inputs/number.js +0 -52
- package/dist/inputs/number.js.map +0 -1
- package/dist/inputs/number.mjs +0 -50
- package/dist/inputs/number.mjs.map +0 -1
- package/dist/inputs/text.d.mts +0 -31
- package/dist/inputs/text.d.ts +0 -31
- package/dist/inputs/text.js +0 -76
- package/dist/inputs/text.js.map +0 -1
- package/dist/inputs/text.mjs +0 -74
- package/dist/inputs/text.mjs.map +0 -1
- package/dist/inputs/time.d.mts +0 -31
- package/dist/inputs/time.d.ts +0 -31
- package/dist/inputs/time.js +0 -52
- package/dist/inputs/time.js.map +0 -1
- package/dist/inputs/time.mjs +0 -50
- package/dist/inputs/time.mjs.map +0 -1
- package/dist/inputs/toggle.d.mts +0 -31
- package/dist/inputs/toggle.d.ts +0 -31
- package/dist/inputs/toggle.js +0 -57
- package/dist/inputs/toggle.js.map +0 -1
- package/dist/inputs/toggle.mjs +0 -55
- package/dist/inputs/toggle.mjs.map +0 -1
- package/dist/layouts/area-grid.d.mts +0 -133
- package/dist/layouts/area-grid.d.ts +0 -133
- package/dist/layouts/area-grid.js +0 -113
- package/dist/layouts/area-grid.js.map +0 -1
- package/dist/layouts/area-grid.mjs +0 -110
- package/dist/layouts/area-grid.mjs.map +0 -1
- package/dist/layouts/flow.d.mts +0 -119
- package/dist/layouts/flow.d.ts +0 -119
- package/dist/layouts/flow.js +0 -96
- package/dist/layouts/flow.js.map +0 -1
- package/dist/layouts/flow.mjs +0 -94
- package/dist/layouts/flow.mjs.map +0 -1
- package/dist/layouts/index.d.mts +0 -14
- package/dist/layouts/index.d.ts +0 -14
- package/dist/layouts/index.js +0 -28
- package/dist/layouts/index.js.map +0 -1
- package/dist/layouts/index.mjs +0 -5
- package/dist/layouts/index.mjs.map +0 -1
- package/dist/layouts/stack.d.mts +0 -28
- package/dist/layouts/stack.d.ts +0 -28
- package/dist/layouts/stack.js +0 -24
- package/dist/layouts/stack.js.map +0 -1
- package/dist/layouts/stack.mjs +0 -22
- package/dist/layouts/stack.mjs.map +0 -1
- package/dist/medias/background-image.d.mts +0 -56
- package/dist/medias/background-image.d.ts +0 -56
- package/dist/medias/background-image.js +0 -49
- package/dist/medias/background-image.js.map +0 -1
- package/dist/medias/background-image.mjs +0 -47
- package/dist/medias/background-image.mjs.map +0 -1
- package/dist/medias/badge.d.mts +0 -31
- package/dist/medias/badge.d.ts +0 -31
- package/dist/medias/badge.js +0 -84
- package/dist/medias/badge.js.map +0 -1
- package/dist/medias/badge.mjs +0 -82
- package/dist/medias/badge.mjs.map +0 -1
- package/dist/medias/code-block.d.mts +0 -31
- package/dist/medias/code-block.d.ts +0 -31
- package/dist/medias/code-block.js +0 -43
- package/dist/medias/code-block.js.map +0 -1
- package/dist/medias/code-block.mjs +0 -41
- package/dist/medias/code-block.mjs.map +0 -1
- package/dist/medias/icon.d.mts +0 -31
- package/dist/medias/icon.d.ts +0 -31
- package/dist/medias/icon.js +0 -56
- package/dist/medias/icon.js.map +0 -1
- package/dist/medias/icon.mjs +0 -54
- package/dist/medias/icon.mjs.map +0 -1
- package/dist/medias/image.d.mts +0 -31
- package/dist/medias/image.d.ts +0 -31
- package/dist/medias/image.js +0 -80
- package/dist/medias/image.js.map +0 -1
- package/dist/medias/image.mjs +0 -78
- package/dist/medias/image.mjs.map +0 -1
- package/dist/medias/index.d.mts +0 -31
- package/dist/medias/index.d.ts +0 -31
- package/dist/medias/index.js +0 -84
- package/dist/medias/index.js.map +0 -1
- package/dist/medias/index.mjs +0 -13
- package/dist/medias/index.mjs.map +0 -1
- package/dist/medias/media.d.mts +0 -31
- package/dist/medias/media.d.ts +0 -31
- package/dist/medias/media.js +0 -91
- package/dist/medias/media.js.map +0 -1
- package/dist/medias/media.mjs +0 -87
- package/dist/medias/media.mjs.map +0 -1
- package/dist/medias/progress-bar.d.mts +0 -31
- package/dist/medias/progress-bar.d.ts +0 -31
- package/dist/medias/progress-bar.js +0 -43
- package/dist/medias/progress-bar.js.map +0 -1
- package/dist/medias/progress-bar.mjs +0 -41
- package/dist/medias/progress-bar.mjs.map +0 -1
- package/dist/medias/progress-ring.d.mts +0 -31
- package/dist/medias/progress-ring.d.ts +0 -31
- package/dist/medias/progress-ring.js +0 -46
- package/dist/medias/progress-ring.js.map +0 -1
- package/dist/medias/progress-ring.mjs +0 -44
- package/dist/medias/progress-ring.mjs.map +0 -1
- package/dist/medias/rich-text-block.d.mts +0 -31
- package/dist/medias/rich-text-block.d.ts +0 -31
- package/dist/medias/rich-text-block.js +0 -33
- package/dist/medias/rich-text-block.js.map +0 -1
- package/dist/medias/rich-text-block.mjs +0 -31
- package/dist/medias/rich-text-block.mjs.map +0 -1
- package/dist/medias/text-block.d.mts +0 -31
- package/dist/medias/text-block.d.ts +0 -31
- package/dist/medias/text-block.js +0 -95
- package/dist/medias/text-block.js.map +0 -1
- package/dist/medias/text-block.mjs +0 -93
- package/dist/medias/text-block.mjs.map +0 -1
- package/dist/medias/text-run.d.mts +0 -31
- package/dist/medias/text-run.d.ts +0 -31
- package/dist/medias/text-run.js +0 -108
- package/dist/medias/text-run.js.map +0 -1
- package/dist/medias/text-run.mjs +0 -106
- package/dist/medias/text-run.mjs.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
3
|
-
*/
|
|
4
|
-
interface IAuthCardButton {
|
|
5
|
-
/**
|
|
6
|
-
* The type of the button.
|
|
7
|
-
*/
|
|
8
|
-
type: string;
|
|
9
|
-
/**
|
|
10
|
-
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
11
|
-
*/
|
|
12
|
-
value: string;
|
|
13
|
-
/**
|
|
14
|
-
* The caption of the button.
|
|
15
|
-
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* A URL to an image to display alongside the button’s caption.
|
|
19
|
-
*/
|
|
20
|
-
image?: string;
|
|
21
|
-
}
|
|
22
|
-
type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;
|
|
23
|
-
/**
|
|
24
|
-
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
25
|
-
*/
|
|
26
|
-
declare class AuthCardbutton implements IAuthCardButton {
|
|
27
|
-
/**
|
|
28
|
-
* The type of the button.
|
|
29
|
-
*/
|
|
30
|
-
type: string;
|
|
31
|
-
/**
|
|
32
|
-
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
33
|
-
*/
|
|
34
|
-
value: string;
|
|
35
|
-
/**
|
|
36
|
-
* The caption of the button.
|
|
37
|
-
*/
|
|
38
|
-
title?: string;
|
|
39
|
-
/**
|
|
40
|
-
* A URL to an image to display alongside the button’s caption.
|
|
41
|
-
*/
|
|
42
|
-
image?: string;
|
|
43
|
-
constructor(type: string, value: string, options?: AuthCardButtonOptions);
|
|
44
|
-
withType(value: string): this;
|
|
45
|
-
withValue(value: string): this;
|
|
46
|
-
withTitle(value: string): this;
|
|
47
|
-
withImage(value: string): this;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { type AuthCardButtonOptions, AuthCardbutton, type IAuthCardButton };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AuthCardbutton {
|
|
4
|
-
/**
|
|
5
|
-
* The type of the button.
|
|
6
|
-
*/
|
|
7
|
-
type;
|
|
8
|
-
/**
|
|
9
|
-
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
10
|
-
*/
|
|
11
|
-
value;
|
|
12
|
-
/**
|
|
13
|
-
* The caption of the button.
|
|
14
|
-
*/
|
|
15
|
-
title;
|
|
16
|
-
/**
|
|
17
|
-
* A URL to an image to display alongside the button’s caption.
|
|
18
|
-
*/
|
|
19
|
-
image;
|
|
20
|
-
constructor(type, value, options = {}) {
|
|
21
|
-
this.type = type;
|
|
22
|
-
this.value = value;
|
|
23
|
-
Object.assign(this, options);
|
|
24
|
-
}
|
|
25
|
-
withType(value) {
|
|
26
|
-
this.type = value;
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
withValue(value) {
|
|
30
|
-
this.value = value;
|
|
31
|
-
return this;
|
|
32
|
-
}
|
|
33
|
-
withTitle(value) {
|
|
34
|
-
this.title = value;
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
withImage(value) {
|
|
38
|
-
this.image = value;
|
|
39
|
-
return this;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.AuthCardbutton = AuthCardbutton;
|
|
44
|
-
//# sourceMappingURL=auth-card-button.js.map
|
|
45
|
-
//# sourceMappingURL=auth-card-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/auth-card-button.ts"],"names":[],"mappings":";;AA8BO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAc,KAAe,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC5E,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth-card-button.js","sourcesContent":["/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport interface IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n}\n\nexport type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;\n\n/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport class AuthCardbutton implements IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n\n constructor(type: string, value: string, options: AuthCardButtonOptions = {}) {\n this.type = type;\n this.value = value;\n Object.assign(this, options);\n }\n\n withType(value: string) {\n this.type = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withImage(value: string) {\n this.image = value;\n return this;\n }\n}\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
class AuthCardbutton {
|
|
2
|
-
/**
|
|
3
|
-
* The type of the button.
|
|
4
|
-
*/
|
|
5
|
-
type;
|
|
6
|
-
/**
|
|
7
|
-
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
8
|
-
*/
|
|
9
|
-
value;
|
|
10
|
-
/**
|
|
11
|
-
* The caption of the button.
|
|
12
|
-
*/
|
|
13
|
-
title;
|
|
14
|
-
/**
|
|
15
|
-
* A URL to an image to display alongside the button’s caption.
|
|
16
|
-
*/
|
|
17
|
-
image;
|
|
18
|
-
constructor(type, value, options = {}) {
|
|
19
|
-
this.type = type;
|
|
20
|
-
this.value = value;
|
|
21
|
-
Object.assign(this, options);
|
|
22
|
-
}
|
|
23
|
-
withType(value) {
|
|
24
|
-
this.type = value;
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
withValue(value) {
|
|
28
|
-
this.value = value;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
withTitle(value) {
|
|
32
|
-
this.title = value;
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
withImage(value) {
|
|
36
|
-
this.image = value;
|
|
37
|
-
return this;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { AuthCardbutton };
|
|
42
|
-
//# sourceMappingURL=auth-card-button.mjs.map
|
|
43
|
-
//# sourceMappingURL=auth-card-button.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/auth-card-button.ts"],"names":[],"mappings":"AA8BO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAc,KAAe,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC5E,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth-card-button.mjs","sourcesContent":["/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport interface IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n}\n\nexport type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;\n\n/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport class AuthCardbutton implements IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n\n constructor(type: string, value: string, options: AuthCardButtonOptions = {}) {\n this.type = type;\n this.value = value;\n Object.assign(this, options);\n }\n\n withType(value: string) {\n this.type = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withImage(value: string) {\n this.image = value;\n return this;\n }\n}\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IAuthCardButton } from './auth-card-button.mjs';
|
|
2
|
-
import { ITokenExchangeResource } from './token-exchange-resource.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
6
|
-
*/
|
|
7
|
-
interface IAuth {
|
|
8
|
-
/**
|
|
9
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
10
|
-
*/
|
|
11
|
-
text?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The identifier for registered OAuth connection setting information.
|
|
14
|
-
*/
|
|
15
|
-
connectionName?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
18
|
-
*/
|
|
19
|
-
tokenExchangeResource?: ITokenExchangeResource;
|
|
20
|
-
/**
|
|
21
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
22
|
-
*/
|
|
23
|
-
buttons?: IAuthCardButton[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
27
|
-
*/
|
|
28
|
-
declare class Auth implements IAuth {
|
|
29
|
-
/**
|
|
30
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
31
|
-
*/
|
|
32
|
-
text?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The identifier for registered OAuth connection setting information.
|
|
35
|
-
*/
|
|
36
|
-
connectionName?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
39
|
-
*/
|
|
40
|
-
tokenExchangeResource?: ITokenExchangeResource;
|
|
41
|
-
/**
|
|
42
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
43
|
-
*/
|
|
44
|
-
buttons?: IAuthCardButton[];
|
|
45
|
-
constructor(options?: IAuth);
|
|
46
|
-
withText(value: string): this;
|
|
47
|
-
withConnectionName(value: string): this;
|
|
48
|
-
withTokenExchangeResource(value: ITokenExchangeResource): this;
|
|
49
|
-
addButtons(...value: IAuthCardButton[]): this;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { Auth, type IAuth };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IAuthCardButton } from './auth-card-button.js';
|
|
2
|
-
import { ITokenExchangeResource } from './token-exchange-resource.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
6
|
-
*/
|
|
7
|
-
interface IAuth {
|
|
8
|
-
/**
|
|
9
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
10
|
-
*/
|
|
11
|
-
text?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The identifier for registered OAuth connection setting information.
|
|
14
|
-
*/
|
|
15
|
-
connectionName?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
18
|
-
*/
|
|
19
|
-
tokenExchangeResource?: ITokenExchangeResource;
|
|
20
|
-
/**
|
|
21
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
22
|
-
*/
|
|
23
|
-
buttons?: IAuthCardButton[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
27
|
-
*/
|
|
28
|
-
declare class Auth implements IAuth {
|
|
29
|
-
/**
|
|
30
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
31
|
-
*/
|
|
32
|
-
text?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The identifier for registered OAuth connection setting information.
|
|
35
|
-
*/
|
|
36
|
-
connectionName?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
39
|
-
*/
|
|
40
|
-
tokenExchangeResource?: ITokenExchangeResource;
|
|
41
|
-
/**
|
|
42
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
43
|
-
*/
|
|
44
|
-
buttons?: IAuthCardButton[];
|
|
45
|
-
constructor(options?: IAuth);
|
|
46
|
-
withText(value: string): this;
|
|
47
|
-
withConnectionName(value: string): this;
|
|
48
|
-
withTokenExchangeResource(value: ITokenExchangeResource): this;
|
|
49
|
-
addButtons(...value: IAuthCardButton[]): this;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { Auth, type IAuth };
|
package/dist/common/auth/auth.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class Auth {
|
|
4
|
-
/**
|
|
5
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
6
|
-
*/
|
|
7
|
-
text;
|
|
8
|
-
/**
|
|
9
|
-
* The identifier for registered OAuth connection setting information.
|
|
10
|
-
*/
|
|
11
|
-
connectionName;
|
|
12
|
-
/**
|
|
13
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
14
|
-
*/
|
|
15
|
-
tokenExchangeResource;
|
|
16
|
-
/**
|
|
17
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
18
|
-
*/
|
|
19
|
-
buttons;
|
|
20
|
-
constructor(options = {}) {
|
|
21
|
-
Object.assign(this, options);
|
|
22
|
-
}
|
|
23
|
-
withText(value) {
|
|
24
|
-
this.text = value;
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
withConnectionName(value) {
|
|
28
|
-
this.connectionName = value;
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
withTokenExchangeResource(value) {
|
|
32
|
-
this.tokenExchangeResource = value;
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
addButtons(...value) {
|
|
36
|
-
if (!this.buttons) {
|
|
37
|
-
this.buttons = [];
|
|
38
|
-
}
|
|
39
|
-
this.buttons.push(...value);
|
|
40
|
-
return this;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
exports.Auth = Auth;
|
|
45
|
-
//# sourceMappingURL=auth.js.map
|
|
46
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/auth.ts"],"names":[],"mappings":";;AA+BO,MAAM,IAAsB,CAAA;AAAA;AAAA;AAAA;AAAA,EAIjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,mBAAmB,KAAe,EAAA;AAChC,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,0BAA0B,KAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,qBAAwB,GAAA,KAAA;AAC7B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAA0B,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth.js","sourcesContent":["import { IAuthCardButton } from './auth-card-button';\nimport { ITokenExchangeResource } from './token-exchange-resource';\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport interface IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n}\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport class Auth implements IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n\n constructor(options: IAuth = {}) {\n Object.assign(this, options);\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withConnectionName(value: string) {\n this.connectionName = value;\n return this;\n }\n\n withTokenExchangeResource(value: ITokenExchangeResource) {\n this.tokenExchangeResource = value;\n return this;\n }\n\n addButtons(...value: IAuthCardButton[]) {\n if (!this.buttons) {\n this.buttons = [];\n }\n\n this.buttons.push(...value);\n return this;\n }\n}\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
class Auth {
|
|
2
|
-
/**
|
|
3
|
-
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
4
|
-
*/
|
|
5
|
-
text;
|
|
6
|
-
/**
|
|
7
|
-
* The identifier for registered OAuth connection setting information.
|
|
8
|
-
*/
|
|
9
|
-
connectionName;
|
|
10
|
-
/**
|
|
11
|
-
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
12
|
-
*/
|
|
13
|
-
tokenExchangeResource;
|
|
14
|
-
/**
|
|
15
|
-
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
16
|
-
*/
|
|
17
|
-
buttons;
|
|
18
|
-
constructor(options = {}) {
|
|
19
|
-
Object.assign(this, options);
|
|
20
|
-
}
|
|
21
|
-
withText(value) {
|
|
22
|
-
this.text = value;
|
|
23
|
-
return this;
|
|
24
|
-
}
|
|
25
|
-
withConnectionName(value) {
|
|
26
|
-
this.connectionName = value;
|
|
27
|
-
return this;
|
|
28
|
-
}
|
|
29
|
-
withTokenExchangeResource(value) {
|
|
30
|
-
this.tokenExchangeResource = value;
|
|
31
|
-
return this;
|
|
32
|
-
}
|
|
33
|
-
addButtons(...value) {
|
|
34
|
-
if (!this.buttons) {
|
|
35
|
-
this.buttons = [];
|
|
36
|
-
}
|
|
37
|
-
this.buttons.push(...value);
|
|
38
|
-
return this;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { Auth };
|
|
43
|
-
//# sourceMappingURL=auth.mjs.map
|
|
44
|
-
//# sourceMappingURL=auth.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/auth.ts"],"names":[],"mappings":"AA+BO,MAAM,IAAsB,CAAA;AAAA;AAAA;AAAA;AAAA,EAIjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,mBAAmB,KAAe,EAAA;AAChC,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,0BAA0B,KAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,qBAAwB,GAAA,KAAA;AAC7B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAA0B,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth.mjs","sourcesContent":["import { IAuthCardButton } from './auth-card-button';\nimport { ITokenExchangeResource } from './token-exchange-resource';\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport interface IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n}\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport class Auth implements IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n\n constructor(options: IAuth = {}) {\n Object.assign(this, options);\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withConnectionName(value: string) {\n this.connectionName = value;\n return this;\n }\n\n withTokenExchangeResource(value: ITokenExchangeResource) {\n this.tokenExchangeResource = value;\n return this;\n }\n\n addButtons(...value: IAuthCardButton[]) {\n if (!this.buttons) {\n this.buttons = [];\n }\n\n this.buttons.push(...value);\n return this;\n }\n}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var auth = require('./auth');
|
|
4
|
-
var authCardButton = require('./auth-card-button');
|
|
5
|
-
var tokenExchangeResource = require('./token-exchange-resource');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.keys(auth).forEach(function (k) {
|
|
10
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return auth[k]; }
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
Object.keys(authCardButton).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return authCardButton[k]; }
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
Object.keys(tokenExchangeResource).forEach(function (k) {
|
|
22
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return tokenExchangeResource[k]; }
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)
|
|
3
|
-
*/
|
|
4
|
-
interface ITokenExchangeResource {
|
|
5
|
-
/**
|
|
6
|
-
* The unique identified of this token exchange instance.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
11
|
-
*/
|
|
12
|
-
uri: string;
|
|
13
|
-
/**
|
|
14
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
15
|
-
*/
|
|
16
|
-
providerId: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)
|
|
20
|
-
*/
|
|
21
|
-
declare class TokenExchangeResource implements ITokenExchangeResource {
|
|
22
|
-
/**
|
|
23
|
-
* The unique identified of this token exchange instance.
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
28
|
-
*/
|
|
29
|
-
uri: string;
|
|
30
|
-
/**
|
|
31
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
32
|
-
*/
|
|
33
|
-
providerId: string;
|
|
34
|
-
constructor(id: string, uri: string, providerId: string);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { type ITokenExchangeResource, TokenExchangeResource };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)
|
|
3
|
-
*/
|
|
4
|
-
interface ITokenExchangeResource {
|
|
5
|
-
/**
|
|
6
|
-
* The unique identified of this token exchange instance.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
11
|
-
*/
|
|
12
|
-
uri: string;
|
|
13
|
-
/**
|
|
14
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
15
|
-
*/
|
|
16
|
-
providerId: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)
|
|
20
|
-
*/
|
|
21
|
-
declare class TokenExchangeResource implements ITokenExchangeResource {
|
|
22
|
-
/**
|
|
23
|
-
* The unique identified of this token exchange instance.
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
28
|
-
*/
|
|
29
|
-
uri: string;
|
|
30
|
-
/**
|
|
31
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
32
|
-
*/
|
|
33
|
-
providerId: string;
|
|
34
|
-
constructor(id: string, uri: string, providerId: string);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { type ITokenExchangeResource, TokenExchangeResource };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class TokenExchangeResource {
|
|
4
|
-
/**
|
|
5
|
-
* The unique identified of this token exchange instance.
|
|
6
|
-
*/
|
|
7
|
-
id;
|
|
8
|
-
/**
|
|
9
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
10
|
-
*/
|
|
11
|
-
uri;
|
|
12
|
-
/**
|
|
13
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
14
|
-
*/
|
|
15
|
-
providerId;
|
|
16
|
-
constructor(id, uri, providerId) {
|
|
17
|
-
this.id = id;
|
|
18
|
-
this.uri = uri;
|
|
19
|
-
this.providerId = providerId;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
exports.TokenExchangeResource = TokenExchangeResource;
|
|
24
|
-
//# sourceMappingURL=token-exchange-resource.js.map
|
|
25
|
-
//# sourceMappingURL=token-exchange-resource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/token-exchange-resource.ts"],"names":[],"mappings":";;AAuBO,MAAM,qBAAwD,CAAA;AAAA;AAAA;AAAA;AAAA,EAInE,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA;AAAA,EAEA,WAAA,CAAY,EAAY,EAAA,GAAA,EAAa,UAAoB,EAAA;AACvD,IAAA,IAAA,CAAK,EAAK,GAAA,EAAA;AACV,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,UAAa,GAAA,UAAA;AAAA;AAEtB","file":"token-exchange-resource.js","sourcesContent":["/**\n * Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)\n */\nexport interface ITokenExchangeResource {\n /**\n * The unique identified of this token exchange instance.\n */\n id: string;\n\n /**\n * An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.\n */\n uri: string;\n\n /**\n * An identifier for the identity provider with which to attempt a token exchange.\n */\n providerId: string;\n}\n\n/**\n * Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)\n */\nexport class TokenExchangeResource implements ITokenExchangeResource {\n /**\n * The unique identified of this token exchange instance.\n */\n id: string;\n\n /**\n * An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.\n */\n uri: string;\n\n /**\n * An identifier for the identity provider with which to attempt a token exchange.\n */\n providerId: string;\n\n constructor(id: string, uri: string, providerId: string) {\n this.id = id;\n this.uri = uri;\n this.providerId = providerId;\n }\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
class TokenExchangeResource {
|
|
2
|
-
/**
|
|
3
|
-
* The unique identified of this token exchange instance.
|
|
4
|
-
*/
|
|
5
|
-
id;
|
|
6
|
-
/**
|
|
7
|
-
* An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.
|
|
8
|
-
*/
|
|
9
|
-
uri;
|
|
10
|
-
/**
|
|
11
|
-
* An identifier for the identity provider with which to attempt a token exchange.
|
|
12
|
-
*/
|
|
13
|
-
providerId;
|
|
14
|
-
constructor(id, uri, providerId) {
|
|
15
|
-
this.id = id;
|
|
16
|
-
this.uri = uri;
|
|
17
|
-
this.providerId = providerId;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { TokenExchangeResource };
|
|
22
|
-
//# sourceMappingURL=token-exchange-resource.mjs.map
|
|
23
|
-
//# sourceMappingURL=token-exchange-resource.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/auth/token-exchange-resource.ts"],"names":[],"mappings":"AAuBO,MAAM,qBAAwD,CAAA;AAAA;AAAA;AAAA;AAAA,EAInE,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA;AAAA,EAEA,WAAA,CAAY,EAAY,EAAA,GAAA,EAAa,UAAoB,EAAA;AACvD,IAAA,IAAA,CAAK,EAAK,GAAA,EAAA;AACV,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,UAAa,GAAA,UAAA;AAAA;AAEtB","file":"token-exchange-resource.mjs","sourcesContent":["/**\n * Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)\n */\nexport interface ITokenExchangeResource {\n /**\n * The unique identified of this token exchange instance.\n */\n id: string;\n\n /**\n * An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.\n */\n uri: string;\n\n /**\n * An identifier for the identity provider with which to attempt a token exchange.\n */\n providerId: string;\n}\n\n/**\n * Defines information required to enable on-behalf-of single sign-on user authentication. Maps to the TokenExchangeResource type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.tokenexchangeresource)\n */\nexport class TokenExchangeResource implements ITokenExchangeResource {\n /**\n * The unique identified of this token exchange instance.\n */\n id: string;\n\n /**\n * An application ID or resource identifier with which to exchange a token on behalf of. This property is identity provider- and application-specific.\n */\n uri: string;\n\n /**\n * An identifier for the identity provider with which to attempt a token exchange.\n */\n providerId: string;\n\n constructor(id: string, uri: string, providerId: string) {\n this.id = id;\n this.uri = uri;\n this.providerId = providerId;\n }\n}\n"]}
|
package/dist/common/color.d.mts
DELETED
package/dist/common/color.d.ts
DELETED
package/dist/common/color.js
DELETED
package/dist/common/color.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"color.js"}
|
package/dist/common/color.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"color.mjs"}
|
package/dist/common/font.d.mts
DELETED
package/dist/common/font.d.ts
DELETED
package/dist/common/font.js
DELETED
package/dist/common/font.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"font.js"}
|
package/dist/common/font.mjs
DELETED
package/dist/common/font.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"font.mjs"}
|